Share via


List automation accounts in all cloud services

 

The List automation accounts in all cloud services operation lists all the automation accounts in all of the cloud services.

Request

To specify the request, replace <subscription-id> with your subscription ID. Include required URI parameters.

Method

Request URI

GET

https://management.core.windows.net/<subscription-id>/cloudServices?resourceType=AutomationAccount&detailLevel=Full&resourceProviderNamespace=automation

URI Parameters

Uri Parameter

Description

resourceType

Required. Specify "AutomationAccount".

detailLevel

Required. Specify "Full".

resourceProviderNamespace

Required. Specify "automation".

Request Headers

The request header in the following table is required.

Request Header

Description

x-ms-version

Specifies the version of the operation. Set to 2013-06-01 or a later version.

Request Body

None

Response

Status Code

An operation returns 200 (OK) for a successful operation. For information about common error codes, see Service Management Status and Error Codes. For all error codes, see HTTP/1.1 Status Code Definitions.

Response Headers

Request Header

Description

x-ms-request-id

A unique identifier for the current operation.

Response Body

The following XML node shows the data for the cloud service extracted from the response body and contains a resource of type AutomationAccount.

<CloudService>
  <Name>LITWARE000SCSTTVP6WSQHWBUI7EJKAVVWH6KPCJOICIDHS2FNUB6V3THHL-West-US</Name>
  <Label> LITWARE000SCSTTVP6WSQHWBUI7EJKAVVWH6KPCJOICIDHS2FNUB6V3THHL-West-US</Label>
  <Description>LITWARE.COM WEST-US</Description>
  <GeoRegion>West US</GeoRegion>
  <Resources>
    <Resource>
      <ResourceProviderNamespace>automation</ResourceProviderNamespace>
      <Type>AutomationAccount</Type>
      <Name>Litware.com Automation Account West-US</Name>
      <ETag>627c7255-2eb2-4186-9404-a09fa29e4564</ETag>
      <State>NotFound</State>
      <OperationStatus>
        <Type>Update</Type>
        <Result>Succeeded</Result>
      </OperationStatus>
    </Resource>
  </Resources>
</CloudService>

Element name (Resource elements)

Description

ResourceProviderNamespace

The namespace category for this resource.

Type

The type of the resource.

Name

The name of the automation account

State

The current state of the resource.

OperationStatus

Defines the type of operation performed and whether the operation succeeded or failed.

nextLink

Returned only when the number of records exceeds the page size (100 records). This link, and any subsequent links, returns the next page of records.

See Also

Automation Accounts
Operations on Automation