Retrieve a Collection of Resource Providers

 

Applies To: Windows Azure Pack

Retrieves a list of resource providers.

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

Method

Request URI

HTTP version

GET

https://<ServiceMgmt>:30004/resourceproviders

HTTP/1.1

Element Name

Description

IncludeSystemResourceProviders

True to include system resource providers in the resource provider list, otherwise False.

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.

The response includes an HTTP status code, a set of response headers, and a response body.

A successful operation returns status code 200 (OK).

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

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

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

Element name

Description

ResourceProviderList

A list of Resource Providers. For more information, see ResourceProvider (Administrator object).

The following code example shows a Get Resource Provider List request.

GET https://<computer>:30004/resourceproviders?includeSystemResourceProviders=False HTTP/1.1
Authorization: Bearer 
x-ms-client-request-id: 7a806c01-6052-4381-b17d-c833392c7c82-2013-07-09 22:40:56Z
x-ms-client-session-id: 4d317dde-d7c1-495e-a819-9802dc021e2f
x-ms-principal-id: <computer>\Administrator
Accept-Language: en-US
x-ms-principal-liveid: <computer>\Administrator
Host: <computer>:30004
Show: