Retrieve the Management Certificates for a Subscription

 

Applies To: Windows Azure Pack

Retrieves the management certificates for a subscription.

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

Method

Request URI

HTTP version

GET

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

HTTP/1.1

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.

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

A successful operation returns status code 200 (OK).

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

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

The following table describes the key elements of the response body:

Element name

Description

SubscriptionCertificate

The retrieved subscription certificates. For more information, see SubscriptionCertificate (Tenant object).

The following code example shows a List Management Certificates request.

GET https://<computer>:30005/subscriptions/0cfc58de-38cb-4fa6-9258-4afde95d3c05/certificates HTTP/1.1
x-ms-principal-id: aaa@bbb.com
Authorization: Bearer <Token>
x-ms-client-request-id: fe72bbdd-82c3-4df7-90c9-b25e439cb2e7-2013-07-03 16:19:50Z
x-ms-client-session-id: 63e511ac-4d23-432d-b41f-89a4865abc1a
Accept-Language: en-US
x-ms-principal-liveid: aaa@bbb.com
Host: pt-autotest1:30005

The following code example shows a List Management Certificates response.

[
  {
    "SubscriptionCertificatePublicKey": "MIIBCgKCAQEAlwzEOUpn23YTQG62sc\/TjzOplxGVun3g4FbIB0MYPm3VX0vdQiMnypX8Gs8jgRB\/MmOyS9qf6VI2hxPHayimr4cXMqdBnZXDWMQ6PlqMRx0DUwI\/UQ+YqbF7ZjogAqedTFRcD4QCoOP8n+mVpvp4fLSEYeSZwrwLtnyeYn77lVJKcNltHzqVeRwBd951MjGEddbOPuwoGAzghEbDm\/M9j3DpSObbwPnqfKfoUbx6xQRgwsRJsRX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