Share via


Add a Management Certificate (Tenant Management Certificate)

 

Applies To: Windows Azure Pack

Adds a management certificate to a subscription.

Request

Replace <ServiceMgmt> with your Service Management API endpoint address. Replace <SubscriptionID> with the identifier of the subscription.

Method

Request URI

HTTP version

POST

https://<ServiceMgmt>:30005/Subscriptions/<SubscriptionId>/certificates/

HTTP/1.1

URI Parameters

None.

Request Headers

The following table describes required and optional request headers.

Request header

Description

Authorization: Bearer

Required. Authorization bearer token.

x-ms-principal-id

Required. The principal identifier.

x-ms-client-request-id

Optional. The client request identifier.

x-ms-client-session-id

Optional. The client session identifier.

x-ms-principal-liveid

Optional. The principal Live identifier.

Request Body

None

Response

The response includes an HTTP status code, a set of response headers, and a response body.

Status Code

A successful operation returns status code 204 (No content).

For information about status codes, see Status and Error Codes (Windows Azure Pack Service Management).

Response Headers

The response for this operation includes standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Example

The following code example shows an Add Management Certificate request.

POST https://<computer>:30005/subscriptions/0cfc58de-38cb-4fa6-9258-4afde95d3c05/certificates HTTP/1.1
x-ms-principal-id: [email protected]
Authorization: Bearer <Token>
Accept-Language: en-US
x-ms-principal-liveid: [email protected]
Content-Type: application/json; charset=utf-8
Host: pt-autotest1:30005
Content-Length: 1565
Expect: 100-continue
{
  "SubscriptionCertificatePublicKey": "MIIBCgKCAQEAlwzEOUpn23YTQG62sc\/TjzOplxGVun3g4FbIB0MYPm3VX0vdQiMnypX8Gs8jgRB\/MmOyS9qf6VI2hxPHayimr4cXMqdBnZXDWMQ6PlqMRx0DUwI\/UQ+YqbF7ZjogAqedTFRcD4QCoOP8n+mVpvp4fLSEYeSZwrwLtnyeYn77lVJKcNltHzqVeRwBd951MjGEddbOPuwoGAzghEbDm\/M9j3DpSObbwPnqfKfoUbx6xQRgwsRJsRXt81yE0VXcpKftwSJN26gwvx+0+us1GC6EKbKHoIZRWUDdzzwSDP+e31OHfPRrAD19n0qAYLDAv\/QyBTKmwegyqOiWa2fqldEzYwIDAQAB",
  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