Skip to main content

endpoint_certificates

Creates, updates, deletes, gets or lists an endpoint_certificates resource.

Overview

Nameendpoint_certificates
TypeResource
Idazure.sql.endpoint_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.
publicBlobstringThe certificate public blob.
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, managed_instance_name, endpoint_type, subscription_idGets a certificate used on the endpoint with the given id.
list_by_instanceselectresource_group_name, managed_instance_name, subscription_idList certificates used on endpoints on the target instance.

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
endpoint_typestringType of the endpoint whose certificate the customer is looking for. Required.
managed_instance_namestringThe name of the managed instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets a certificate used on the endpoint with the given id.

SELECT
id,
name,
publicBlob,
systemData,
type
FROM azure.sql.endpoint_certificates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND managed_instance_name = '{{ managed_instance_name }}' -- required
AND endpoint_type = '{{ endpoint_type }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;