Partager via


List Service Certificates

 

The List Service Certificates operation lists all of the service certificates associated with the specified cloud service.

Request

The List Service Certificates request may be specified as follows. Replace <subscription-id> with the subscription ID, and <service-name> with the name of the cloud service.

Method

Request URI

GET

https://management.core.windows.net/<subscription-id>/services/hostedservices/<service-name>/certificates

URI Parameters

None.

Request Headers

The following table describes the request headers.

Request Header

Description

x-ms-version

Required. Specifies the version of the operation to use for this request. This header should be set to 2009-10-01 or a higher.

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).

Response Headers

The response for this operation includes the following headers. The response may also include additional standard HTTP headers.

Response Header

Description

x-ms-request-id

A value that uniquely identifies a request made against the management service.

Response Body

The format of the response body is as follows:

<?xml version="1.0" encoding="utf-8"?>
  <Certificates xmlns=”https://schemas.microsoft.com/windowsazure”>
    <Certificate>
      <CertificateUrl>certificate-thumbprint-address</CertificateUrl>
      <Thumbprint>certificate-thumbprint</Thumbprint>
      <ThumbprintAlgorithm>thumbprint-algorithm</ThumbprintAlgorithm>        
      <Data>base64-encoded-X509-representation-of-the-certificate</Data>
    </Certificate>
  </Certificates>

The following table describes the elements of the response body.

Element name

Description

CertificateUrl

The Service Management API request URI used to perform Get Service Certificate requests against the certificate store.

Thumbprint

The X509 certificate thumb print property of the service certificate.

ThumbprintAlgorithm

The algorithm that was used to hash the service certificate. Currently SHA-1 is the only supported algorithm.

Data

The public part of the service certificate as a base-64 encoded .cer file.