Skip to main content

configurations

Creates, updates, deletes, gets or lists a configurations resource.

Overview

Nameconfigurations
TypeResource
Idazure_isv.nginx.configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
filesarray:vartype files: list[~azure.mgmt.nginx.models.NginxConfigurationFile]
packageobjectNginx Configuration Package.
protectedFilesarray:vartype protected_files: list[~azure.mgmt.nginx.models.NginxConfigurationProtectedFileResponse]
provisioningStatestringProvisioning State. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". (Accepted, Creating, Updating, Deleting, Succeeded, Failed, Canceled, Deleted, NotSpecified)
rootFilestring:vartype root_file: str
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, deployment_name, configuration_name, subscription_idGet the NGINX configuration of given NGINX deployment.
listselectresource_group_name, deployment_name, subscription_idList the NGINX configuration of given NGINX deployment.
create_or_updateinsertresource_group_name, deployment_name, configuration_name, subscription_idCreate or update the NGINX configuration for given NGINX deployment.
create_or_updatereplaceresource_group_name, deployment_name, configuration_name, subscription_idCreate or update the NGINX configuration for given NGINX deployment.
deletedeleteresource_group_name, deployment_name, configuration_name, subscription_idReset the NGINX configuration of given NGINX deployment to default.
analysisexecresource_group_name, deployment_name, configuration_name, subscription_id, configAnalyze an NGINX configuration without applying it to the NGINXaaS deployment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
configuration_namestringThe name of configuration, only 'default' is supported value due to the singleton of NGINX conf. Required.
deployment_namestringThe name of targeted NGINX deployment. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the NGINX configuration of given NGINX deployment.

SELECT
id,
name,
files,
package,
protectedFiles,
provisioningState,
rootFile,
systemData,
type
FROM azure_isv.nginx.configurations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND configuration_name = '{{ configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update the NGINX configuration for given NGINX deployment.

INSERT INTO azure_isv.nginx.configurations (
properties,
resource_group_name,
deployment_name,
configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ deployment_name }}',
'{{ configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create or update the NGINX configuration for given NGINX deployment.

REPLACE azure_isv.nginx.configurations
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Reset the NGINX configuration of given NGINX deployment to default.

DELETE FROM azure_isv.nginx.configurations
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Analyze an NGINX configuration without applying it to the NGINXaaS deployment.

EXEC azure_isv.nginx.configurations.analysis 
@resource_group_name='{{ resource_group_name }}' --required,
@deployment_name='{{ deployment_name }}' --required,
@configuration_name='{{ configuration_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"config": "{{ config }}"
}'
;