v4

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

Upload the certificate to the provisioning service.

Add new certificate or update an existing certificate.

put/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}

Path parameters

subscriptionIdstring required

The subscription identifier.

resourceGroupNamestring required

Resource group identifier.

provisioningServiceNamestring required

The name of the provisioning service.

certificateNamestring required

The name of the certificate create or update.

Query parameters

api-versionstring required

The version of the API.

Headers

If-Matchstring

ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.

Request body

certificatestring

Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.

Response

If certificate already exist and update was successful, the operation returns HTTP status code of 201 (OK).

idstring

The resource identifier.

namestring

The name of the certificate.

etagstring

The entity tag.

typestring

The resource type.