List automation accounts in a cloud service
The List automation accounts in a cloud service lists all the automation accounts that belong to a specified cloud service.
Request
To specify the request, replace <subscription-id> and <cloud-service-name> with the name of a cloud service. Include required URI parameters.
Method |
Request URI |
---|---|
GET |
https://management.core.windows.net/<subscription-id>/cloudServices/<cloud-service-name>?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 one 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>
<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. |