다음을 통해 공유


추가 기능에 대한 구독 검색

 

적용 대상: Windows Azure Pack

추가 기능에 대한 구독을 검색합니다.

요청

ServiceMgmt를> 서비스 관리 API 엔드포인트 주소로 대체<합니다.

메서드

요청 URI

HTTP 버전

GET

<https:// ServiceMgmt>:30004/subscriptions

HTTP/1.1

URI 매개 변수

다음 표에서는 URI 매개 변수에 대해 설명합니다.

URI 매개 변수

설명

addOnId

필수 요소. 구독이 속한 추가 기능의 식별자입니다.

필터

쿼리 필터로 사용할 문자열입니다.

요청 헤더

다음 표에서는 필수 요청 헤더와 선택적 요청 헤더에 대해 설명합니다.

요청 헤더

Description

권한 부여: 전달자

필수 요소. 권한 부여 전달자 토큰입니다.

x-ms-principal-id

필수 요소. 보안 주체 식별자입니다.

x-ms-client-request-id

(선택 사항) 클라이언트 요청 식별자입니다.

x-ms-client-session-id

(선택 사항) 클라이언트 세션 식별자입니다.

x-ms-principal-liveid

(선택 사항) 보안 주체 라이브 식별자입니다.

요청 본문

없음.

응답

응답에는 HTTP 상태 코드, 응답 헤더 집합 및 응답 본문이 포함되어 있습니다.

상태 코드

작업에 성공하면 상태 코드 200(정상)이 반환됩니다.

상태 코드에 대한 자세한 내용은 상태 및 오류 코드(Windows Azure Pack Service Management)를 참조하세요.

응답 헤더

이 작업에 대한 응답에는 표준 HTTP 헤더가 포함됩니다. 모든 표준 헤더는 HTTP/1.1 프로토콜 사양을 준수합니다.

응답 본문

다음 표에서는 응답 본문의 주요 요소에 대해 설명합니다.

요소 이름

설명

items

AdminSubscription(관리자 개체) 쿼리 결과 목록입니다.

filteredTotalCount

페이징이 적용되기 전과 필터링이 적용된 후 반환된 총 항목 수입니다.

totalCount

페이징 및 필터링이 적용되기 전에 반환된 총 항목 수입니다.

예제

다음 코드 예제에서는 추가 기능 요청에 대한 구독 검색을 보여 줍니다 .

GET https://<Computer>:30004/subscriptions?addOnId=SqlAOrcghl4snaz0slbre&skip=0&take=25 HTTP/1.1
Authorization: Bearer <Token>
x-ms-client-request-id: fbaea692-256c-4db0-b81f-0317febed272-2013-06-28 19:47:14Z
x-ms-client-session-id: 36d65d7b-42b5-4fc0-8334-93c10e7a90f2
x-ms-principal-id: <COMPUTER>\Administrator
Accept-Language: en-US
x-ms-principal-liveid: <COMPUTER>\Administrator
Host: <Computer>:30004

다음 코드 예제에서는 추가 기능 응답 에 대한 구독 검색을 보여 줍니다 .

{
  "items": [
    {
      "SubscriptionID": "fc92a116-34c8-4654-ae8a-b5c865e8b260",
      "SubscriptionName": "PlanWithAddOnx4xbhndb",
      "AccountAdminLiveEmailId": "mulsub_q2r2mw2c@live.com",
      "ServiceAdminLiveEmailId": null,
      "CoAdminNames": [

      ],
      "AddOnReferences": [
        {
          "AddOnId": "SqlAOrcghl4snaz0slbre",
          "AddOnInstanceId": "04e04b10-f9bd-4eae-b27b-890acd10a49f",
          "AcquisitionTime": "2013-06-27T03:01:42.49"
        }
      ],
      "AddOns": [
        {
          "Id": "SqlAOrcghl4snaz0slbre",
          "DisplayName": "SqlAOrcghl4sn",
          "State": 0,
          "ConfigState": 1,
          "QuotaSyncState": 0,
          "LastErrorMessage": null,
          "Advertisements": [
            {
              "LanguageCode": "en-us",
              "DisplayName": "SqlAOrcghl4sn",
              "Description": null
            }
          ],
          "ServiceQuotas": [
            {
              "ServiceName": "sqlservers",
              "ServiceInstanceId": "7BAD5022-79CA-4B53-8177-1ACAEEAFA099",
              "ServiceDisplayName": "SQL Servers",
              "ServiceInstanceDisplayName": "SQL Servers",
              "ConfigState": 1,
              "QuotaSyncState": 0,
              "Settings": [
                {
                  "Key": "Editions",
                  "Value": "[{\"groupName\":\"Default\",\"resourceCount\":\"2\",\"resourceSize\":\"10\",\"offerEditionId\":\"1367541399669\"}]"
                }
              ]
            }
          ],
          "SubscriptionCount": 1,
          "AssociatedPlans": [

          ],
          "MaxOccurrencesPerPlan": 1,
          "Price": null
        }
      ],
      "State": 1,
      "QuotaSyncState": 0,
      "ActivationSyncState": 0,
      "PlanId": "PlanWithAddOnx4xbhndbt4jyiffn",
      "Services": [
        {
          "Type": "webspaces",
          "State": "registered",
          "QuotaSyncState": 0,
          "ActivationSyncState": 0,
          "BaseQuotaSettings": [
            {
              "Key": "BytesReceived_Shared_WebSpace_Limited",
              "Value": "{\"ComputeMode\":0,\"CustomActionName\":null,\"EnforcementScope\":0,\"ExceededAction\":0,\"Limit\":-1,\"Period\":1440,\"QuotaName\":\"BytesReceived\",\"ResourceName\":\"BytesReceived\",\"SiteMode\":\"Limited\",\"Unit\":1,\"WebPlan\":null}"
            },

            {
              "Key": "NumberOfVirtualWorkers_Dedicated_WebSpace_NULL",
              "Value": "{\"ComputeMode\":1,\"CustomActionName\":null,\"EnforcementScope\":0,\"ExceededAction\":0,\"Limit\":-1,\"Period\":1440,\"QuotaName\":\"NumberOfVirtualWorkers\",\"ResourceName\":\"NumberOfVirtualWorkers\",\"SiteMode\":null,\"Unit\":1,\"WebPlan\":null}"
            }
          ]
        },
        {
          "Type": "sqlservers",
          "State": "registered",
          "QuotaSyncState": 0,
          "ActivationSyncState": 0,
          "BaseQuotaSettings": [
            {
              "Key": "Editions",
              "Value": "[{\"displayName\":\"Default\",\"groupName\":\"Default\",\"resourceCount\":\"10\",\"resourceSize\":\"1024\",\"resourceSizeLimit\":\"1024\",\"offerEditionId\":\"062713030129\",\"groupType\":null}]"
            }
          ]
        },
        {
          "Type": "mysqlservers",
          "State": "registered",
          "QuotaSyncState": 0,
          "ActivationSyncState": 0,
          "BaseQuotaSettings": [
            {
              "Key": "Editions",
              "Value": "[{\"displayName\":\"Default\",\"groupName\":\"Default\",\"resourceCount\":\"10\",\"resourceSize\":\"1024\",\"offerEditionId\":\"062713030129\",\"groupType\":null}]"
            }
          ]
        }
      ],
      "LastErrorMessage": null,
      "Features": null,
      "OfferFriendlyName": "PlanWithAddOnx4xbhndb",
      "OfferCategory": null,
      "Created": "2013-06-27T03:01:31.923"
    }
  ],
  "filteredTotalCount": 1,
  "totalCount": 1
}

참고 항목

관리자 구독 인터페이스