Share via


Update a Resource Provider Instance

 

Applies To: Windows Azure Pack

Updates a resource provider instance.

Request

Replace <ServiceMgmt> with your Service Management API endpoint address. Replace <Name> with the resource provider name and replace <InstanceId> with the instance identifier of the resource provider that is to be updated.

Method

Request URI

HTTP Version

PUT

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

HTTP/1.1

URI Parameters

None.

Request Headers

The following table describes required and optional request headers.

Request header

Description

Authorization: Bearer

Required. The authorization bearer token.

x-ms-principal-id

Required. The principal identifier.

x-ms-client-request-id

Optional. The client request identifier.

x-ms-client-session-id

Optional. The client session identifier.

x-ms-principal-liveid

Optional. The principal Live identifier.

Request Body

The following table describes the elements of the request body.

Element name

Description

ResourceProvider

The updated resource provider information. For more information, See ResourceProvider (Administrator object).

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

For information about status codes, see Status and Error Codes (Windows Azure Pack Service Management).

Response Headers

The response for this operation includes standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response Body

The following table describes the key elements of the response body:

Element name

Description

ResourceProvider

The updated Resource Provider. For more information, See ResourceProvider (Administrator object).

Example

The following code example shows a Update Resource Provider Instance request.

PUT https://<computer>:30004/resourceproviders/systemcenter/4A941E8A-FEE6-4CA4-A1F1-B3BA30AF49F9 HTTP/1.1
Authorization: Bearer <Token>
x-ms-client-request-id: 176abce1-8697-4850-b18e-3d2c15c3edd0-2013-07-12 20:32:51Z
x-ms-client-session-id: 87aaa49c-12ff-448e-bb31-8468b501d2d3
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: 1061
Expect: 100-continue

The following code example shows a Update Resource Provider Instance response.

{
  "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": [

  ]
}

See Also

Administrator Resource Provider Interfaces