v4

latestSwagger 2.0raw.githubusercontent.com2019-05-31182460.5 KB
POST

Get a shared access policy by name from a provisioning service.

List primary and secondary keys for a specific key name

post/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys

Path parameters

provisioningServiceNamestring required

Name of the provisioning service.

keyNamestring required

Logical key name to get key-values for.

subscriptionIdstring required

The subscription identifier.

resourceGroupNamestring required

The name of the resource group that contains the provisioning service.

Query parameters

api-versionstring required

The version of the API.

Response

This is a synchronous operation. The body contains a JSON-serialized shared access policy, including keys, that you can use to access one or more provisioning service endpoints.

keyNamestring required

Name of the key.

primaryKeystring

Primary SAS key value.

secondaryKeystring

Secondary SAS key value.

rights'ServiceConfig' | 'EnrollmentRead' | 'EnrollmentWrite' | 'DeviceConnect' | 'RegistrationStatusRead' | 'RegistrationStatusWrite' required

Rights that this key has.