v2

latestSwagger 2.0raw.githubusercontent.com2021-04-273265113.0 KB
Certificates

Upload the certificate to the IoT hub.

Adds new or replaces existing certificate.

put/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}

Path parameters

subscriptionIdstring required

The subscription identifier.

resourceGroupNamestring required

The name of the resource group that contains the IoT hub.

resourceNamestring required

The name of the IoT hub.

certificateNamestring required

The name of the certificate

Query parameters

api-versionstring required

The version of the API.

Headers

If-Matchstring

ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update an existing 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.