다음을 통해 공유


리소스 공급자 만들기

 

적용 대상: Windows Azure Pack

리소스 공급자를 만듭니다.

요청

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

메서드

요청 URI

HTTP 버전

POST

<https:// ServiceMgmt>:30004/resourceproviders

HTTP/1.1

URI 매개 변수

없음.

요청 헤더

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

요청 헤더

Description

권한 부여: 전달자

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

x-ms-principal-id

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

x-ms-client-request-id

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

x-ms-client-session-id

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

x-ms-principal-liveid

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

요청 본문

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

요소 이름

Description

ResourceProvider

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

응답

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

상태 코드

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

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

응답 헤더

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

응답 본문

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

요소 이름

Description

ResourceProvider

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

예제

다음 코드 예제에서는 리소스 공급자 만들기 요청을 보여줍니다.

POST https://<computer>:30004/resourceproviders HTTP/1.1
Authorization: Bearer <Token>
x-ms-client-request-id: 99baf1fe-1f90-4a3f-942f-4b88c9cbeed5-2013-07-12 20:30:35Z
x-ms-client-session-id: e29feff7-fa09-483a-b786-a90c62020cef
x-ms-principal-id: %e5%b8%83%e6%b4%be
Accept-Language: en-US
Content-Type: application/json; charset=utf-8
Host: <computer>:30004
Content-Length: 1027
Expect: 100-continue

{
  "Name": "systemcenter",
  "DisplayName": "Virtual Machine Clouds",
  "Description": null,
  "Enabled": true,
  "PassThroughEnabled": true,
  "AllowAnonymousAccess": false,
  "AllowMultipleInstances": false,
  "AdminEndpoint": {
    "ForwardingAddress": "https:\/\/spfn-059:8090\/",
    "AuthenticationMode": 1,
    "AuthenticationUsername": "spfuser",
    "AuthenticationPassword": "123Abcde"
  },
  "TenantEndpoint": {
    "ForwardingAddress": "https:\/\/spfn-059:8090\/SC2012R2\/VMM\/",
    "AuthenticationMode": 1,
    "AuthenticationUsername": "spfuser",
    "AuthenticationPassword": "123Abcde",
    "SourceUriTemplate": "{subid}\/services\/systemcenter\/vmm\/{*path}",
    "TargetUriTemplate": "{subid}\/Microsoft.Management.Odata.svc\/{*path}"
  },
  "UsageEndpoint": null,
  "HealthCheckEndpoint": null,
  "NotificationEndpoint": {
    "ForwardingAddress": "https:\/\/spfn-059:8090\/provider\/",
    "AuthenticationMode": 1,
    "AuthenticationUsername": "spfuser",
    "AuthenticationPassword": "123Abcde"
  },
  "InstanceId": null,
  "InstanceDisplayName": "Virtual Machine Clouds",
  "MaxQuotaUpdateBatchSize": 1,
  "SubscriptionStatusPollingInterval": "00:00:10",
  "Type": 0,
  "Settings": [

  ]
}

다음 코드 예제에서는 리소스 공급자 만들기 응답을 보여줍니다.

{
  "Name": "systemcenter",
  "DisplayName": "Virtual Machine Clouds",
  "Description": null,
  "Enabled": true,
  "PassThroughEnabled": true,
  "AllowAnonymousAccess": false,
  "AllowMultipleInstances": false,
  "AdminEndpoint": {
    "ForwardingAddress": "https:\/\/spfn-059:8090\/",
    "AuthenticationMode": 1,
    "AuthenticationUsername": "spfuser",
    "AuthenticationPassword": "123Abcde"
  },
  "TenantEndpoint": {
    "ForwardingAddress": "https:\/\/spfn-059:8090\/SC2012R2\/VMM\/",
    "AuthenticationMode": 1,
    "AuthenticationUsername": "spfuser",
    "AuthenticationPassword": "123Abcde",
    "SourceUriTemplate": "{subid}\/services\/systemcenter\/vmm\/{*path}",
    "TargetUriTemplate": "{subid}\/Microsoft.Management.Odata.svc\/{*path}"
  },
  "UsageEndpoint": null,
  "HealthCheckEndpoint": null,
  "NotificationEndpoint": {
    "ForwardingAddress": "https:\/\/spfn-059:8090\/provider\/",
    "AuthenticationMode": 1,
    "AuthenticationUsername": "spfuser",
    "AuthenticationPassword": "123Abcde"
  },
  "InstanceId": "4A941E8A-FEE6-4CA4-A1F1-B3BA30AF49F9",
  "InstanceDisplayName": "Virtual Machine Clouds",
  "MaxQuotaUpdateBatchSize": 1,
  "SubscriptionStatusPollingInterval": "00:00:10",
  "Type": 0,
  "Settings": [

  ]
}

참고 항목

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