Retrieve a Management Certificate
Applies To: Windows Azure Pack
Retrieves a management certificate.
Request
Replace <ServiceMgmt> with your Service Management API endpoint address. Replace <SubscriptionID> with the subscription identifier and replace <ThumbprintId> with the certificate thumbprint.
Method |
Request URI |
HTTP version |
---|---|---|
GET |
https://<ServiceMgmt>:30005/Subscriptions/<SubscriptionId>/certificates/<ThumbprintId> |
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 200 (OK).
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.
Response Body
The following table describes the key elements of the response body:
Element name |
Description |
---|---|
SubscriptionCertificate |
The retrieved certificate. For more information, see SubscriptionCertificate (Tenant object). |
Example
The following code example shows a Get Management Certificate request.
GET https://test:30005/subscriptions/0fc39a7c-d10e-4274-a12b-6fc9ab854f1c/certificates/9B3C37766BD00C22EC478B8F124C153B4B7E4C5B HTTP/1.1
x-ms-principal-id: [email protected]
Authorization: Bearer
x-ms-client-request-id: ba6b1af5-b15b-427a-b472-d43467f83741-2013-07-10 21:55:57Z
x-ms-client-session-id: 47ed23cf-6767-4e70-bd36-b769c3b668f1
Accept-Language: en-US
x-ms-principal-liveid: [email protected]
Host: test:30005
The following code example shows a Get Management Certificate response.
{
"SubscriptionCertificatePublicKey": "MIIBCgKCAQEAlwzEOUpn23YTQG62sc\/TjzOplxGVun3g4FbIB0MYPm3VX0vdQiMnypX8Gs8jgRB\/MmOyS9qf6VI2hxPHayimr4cXMqdBnZXDWMQ6PlqMRx0DUwI\/UQ+YqbF7ZjogAq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