Share via


Retrieve a Collection of Resource Providers

 

Applies To: Windows Azure Pack

Retrieves a list of resource providers.

Request

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

Method

Request URI

HTTP version

GET

https://<ServiceMgmt>:30004/resourceproviders

HTTP/1.1

URI Parameters

Element Name

Description

IncludeSystemResourceProviders

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

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

None.

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

ResourceProviderList

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

Example

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

See Also

Administrator Resource Provider Interfaces