다음을 통해 공유


리소스 공급자 인스턴스 검색

 

적용 대상: Windows Azure Pack

리소스 공급자의 인스턴스를 검색합니다.

요청

ServiceMgmt를> 서비스 관리 API 엔드포인트 주소로 대체<합니다. 이름을> 리소스 공급자 이름으로 바꿉습니다<. InstanceIdentifier>를 검색할 리소스 공급자 인스턴스의 인스턴스 식별자로 바꿉<다.

메서드

요청 URI

HTTP 버전

GET

<https:// ServiceMgmt>:30004/resourceproviders/<Name>/<InstanceIdentifier>

HTTP/1.1

URI 매개 변수

없음.

요청 헤더

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

요청 헤더

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 프로토콜 사양을 준수합니다.

응답 본문

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

요소 이름

Description

ResourceProvider

검색된 리소스 공급자입니다. 자세한 내용은 ResourceProvider(관리자 개체)를 참조하세요.

예제

다음 코드 예제에서는 리소스 공급자 인스턴스 가져오기 요청을 보여줍니다.

GET https://<computer>:30004/resourceproviders/monitoring/3E92E3A1-1FC1-4AB1-BAB1-6A556DE9BAE9 HTTP/1.1
Authorization: Bearer 
x-ms-client-request-id: a382fdb4-42f3-46fb-a9e7-83f26de17a0c-2013-07-09 23:37:29Z
x-ms-client-session-id: 78441bcf-1ac1-4216-82f0-81f21875567c
x-ms-principal-id: <computer>\Administrator
Accept-Language: en-US
x-ms-principal-liveid: <computer>\Administrator
Host: <computer>:30004
Content-Length: 0

다음 코드 예제에서는 리소스 공급자 인스턴스 가져오기 응답을 보여줍니다.

{
  "Name": "monitoring",
  "DisplayName": "Monitoring Service",
  "Description": null,
  "Enabled": true,
  "PassThroughEnabled": true,
  "AllowAnonymousAccess": true,
  "AllowMultipleInstances": false,
  "AdminEndpoint": {
    "ForwardingAddress": "https:\/\/computer:30020\/",
    "AuthenticationMode": 1,
    "AuthenticationUsername": "MonitoringClient",
    "AuthenticationPassword": null
  },
  "TenantEndpoint": {
    "ForwardingAddress": "https:\/\/computer:30020\/",
    "AuthenticationMode": 1,
    "AuthenticationUsername": "MonitoringClient",
    "AuthenticationPassword": null,
    "SourceUriTemplate": "{subid}\/services\/monitoring\/{*path}",
    "TargetUriTemplate": "{subid}\/{*path}"
  },
  "UsageEndpoint": null,
  "HealthCheckEndpoint": null,
  "NotificationEndpoint": null,
  "InstanceId": "3E92E3A1-1FC1-4AB1-BAB1-6A556DE9BAE9",
  "InstanceDisplayName": "Monitoring Service",
  "MaxQuotaUpdateBatchSize": 5,
  "SubscriptionStatusPollingInterval": "00:00:10",
  "Type": 0
}

참고 항목

관리자 리소스 공급자 인터페이스