匯出 (0) 列印
全部展開
本主題尚未接受評分 - 為這個主題評分

Get Extension

更新日期: 2014年4月

The Get Extension operation retrieves information about a specified extension that was added to a cloud service.

The Get Extension request may be specified as follows. Replace <subscription-id> with your subscription ID, <cloudservice-name> with the name of the cloud service, and <extensionId> with the identifier that was assigned to the extension when it was added to the cloud service. You can find the Id of an extension by using 列出擴充功能.

 

Method Request URI

GET

https://management.core.windows.net/<subscription-id>/services/hostedservices/<cloudservice-name>/extensions/<extensionId>

You must make sure that the request that is made to the management service is secure. For additional details, see 驗證服務管理要求.

The following table describes required and optional request headers.

 

Request Header Description

x-ms-version

Required. Specifies the version of the operation to use for this request. This header must be set to 2013-03-01 or higher. For more information about versioning headers, see 服務管理版本設定.

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 服務管理狀態和錯誤碼.

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

 

Response Header Description

x-ms-request-id

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

The following example shows the format of the response body:


<?xml version="1.0" encoding="utf-8"?>
<Extension xmlns=”http://schemas.microsoft.com/windowsazure”>
  <ProviderNameSpace>namespace-of-extension</ProviderNameSpace>
  <Type>type-of-extension</Type>
  <Id>identifier-of-extension</Id>
  <Version>version-of-extension</Version>
  <Thumbprint>thumbprint-of-encryption-certificate</Thumbprint>
  <ThumbprintAlgorithm>thumbprint-algorithm</ThumbprintAlgorithm>
  <PublicConfiguration>base-64-encoded-xsd-for-extension-public-configuration</PublicConfiguration>
</Extension>

The following table describes the elements of the response body.

 

Element name Description

ProviderNameSpace

The provider namespace of the extension. The provider namespace for Microsoft Azure extensions is Microsoft.Windows.Azure.Extensions.

Type

Required. The type of the extension.

Id

The identifier of the extension.

Version

The version of the extension.

Thumbprint

The thumbprint of the certificate that is used to encrypt the configuration specified in PrivateConfiguration. If this element is not specified, a certificate may be automatically generated and added to the cloud service.

ThumbprintAlgorithm

The thumbprint algorithm of the certificate that is used to encrypt the configuration specified in PrivateConfiguration.

PublicConfiguration

The public configuration that is defined using the schema returned by the 列出可用擴充功能 operation.

本文對您有任何幫助嗎?
(剩餘 1500 個字元)
感謝您提供意見
顯示:
© 2014 Microsoft. 著作權所有,並保留一切權利。