Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idazure_isv.nginx.certificates

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.
certificateErrorobjectNginx Certificate Error Response Body.
certificateVirtualPathstring:vartype certificate_virtual_path: str
keyVaultSecretCreatedstring (date-time):vartype key_vault_secret_created: ~datetime.datetime
keyVaultSecretIdstring:vartype key_vault_secret_id: str
keyVaultSecretVersionstring:vartype key_vault_secret_version: str
keyVirtualPathstring:vartype key_virtual_path: str
locationstringThe geo-location where the resource lives.
provisioningStatestringProvisioning State. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". (Accepted, Creating, Updating, Deleting, Succeeded, Failed, Canceled, Deleted, NotSpecified)
sha1Thumbprintstring:vartype sha1_thumbprint: 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, certificate_name, subscription_idGet a certificate of given NGINX deployment.
listselectresource_group_name, deployment_name, subscription_idList all certificates of given NGINX deployment.
create_or_updateinsertresource_group_name, deployment_name, certificate_name, subscription_idCreate or update the NGINX certificates for given NGINX deployment.
create_or_updatereplaceresource_group_name, deployment_name, certificate_name, subscription_idCreate or update the NGINX certificates for given NGINX deployment.
deletedeleteresource_group_name, deployment_name, certificate_name, subscription_idDeletes a certificate from the NGINX 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
certificate_namestringThe name of certificate. 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 a certificate of given NGINX deployment.

SELECT
id,
name,
certificateError,
certificateVirtualPath,
keyVaultSecretCreated,
keyVaultSecretId,
keyVaultSecretVersion,
keyVirtualPath,
location,
provisioningState,
sha1Thumbprint,
systemData,
type
FROM azure_isv.nginx.certificates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND certificate_name = '{{ certificate_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update the NGINX certificates for given NGINX deployment.

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

REPLACE examples

Create or update the NGINX certificates for given NGINX deployment.

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

DELETE examples

Deletes a certificate from the NGINX deployment.

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