Share via


Verify a Resource Provider

 

Applies To: Windows Azure Pack

Verifies a resource provider using the specified resource provider verification tests.

Request

Replace <ServiceMgmt> with your Service Management API endpoint address.

Method

Request URI

HTTP version

POST

https://<ServiceMgmt>:30004/resourceproviderverification

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 resource provider to be verified.

Tests

A list of verification tests. For more information, see ResourceProviderVerificationTest (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

HasFailures

True if the verification has one or more failures.

DetailedResults

A list of verification results. For more information see, ResourceProviderVerificationTestResult (Administrator object).

Example

The following code example shows a Verify Resource Provider request.

POST https://<computer>:30004/resourceproviderverification 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: 1182
Expect: 100-continue

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

    ]
  },
  "Tests": [
    {
      "TestUri": "https:\/\/<computer>:30004\/\/services\/systemcenter\/SC2012R2\/Admin\/Microsoft.Management.Odata.svc\/",
      "IsAdmin": true
    }
  ]
}

The following code example shows a Verify Resource Provider response.

{
  "HasFailures": false,
  "DetailedResults": [
    {
      "TestUri": "https:\/\/<computer>:30004\/\/services\/systemcenter\/SC2012R2\/Admin\/Microsoft.Management.Odata.svc\/",
      "ResponseStatusCode": "OK"
    }
  ]
}

See Also

Administrator Resource Provider Interfaces