List all credentials

 

The List all credentials operation gets all credentials in an automation account.

Request

To specify the request, replace <subscription-id> with your subscription ID, <cloud-service-name> with the name of the cloud service to use for making the request, <automation-account-name> with the name of the automation account to use for making the request. Include required URI parameters.

Method

Request URI

GET

https://management.core.windows.net/<subscription-id>/cloudServices/<cloud-service-name>/resources/automation/~/automationAccounts/<automation-account-name>/credentials?api-version=2014-12-08

URI Parameters

Uri Parameter

Description

api-version

Required. Must be set to 2014-12-08.

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

A successful operation returns 200 (OK). For information about common 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

{
   "value":[
      {
         "name":"Cred_VVaskola ",
         "properties":{
            "userName":"vvaskola@litware.com",
            "description":"Viljo Vaskola credential",
            "creationTime":"2015-03-30T15:30:56.31+00:00",
            "lastModifiedTime":"2015-03-30T15:30:56.31+00:00"
         }
      },
      {
         "name":"Cred_PRatan",
         "properties":{
            "userName":"pratan@litware.com",
            "description":"Pandit Ratan credential",
            "creationTime":"2015-03-30T15:29:58.62+00:00",
            "lastModifiedTime":"2015-03-30T15:29:58.62+00:00"
         }
      },
      {
         "name":"Cred_RWisnieski",
         "properties":{
            "userName":"rwisniewski@litware.com",
            "description":"Roman Wisniewski credential",
            "creationTime":"2015-03-30T15:32:42.22+00:00",
            "lastModifiedTime":"2015-03-30T15:49:19.477+00:00"
         }
      },
      {
         "name":"Cred_SKeskin",
         "properties":{
            "userName":"skeskin@litware.com",
            "description":"Sabri Keskin credential",
            "creationTime":"2015-03-30T04:01:45.88+00:00",
            "lastModifiedTime":"2015-03-30T04:01:45.88+00:00"
         }
      }
   ]
}

Element

Description

name

The name of the credential.

userName

The name of the user associated with the credential.

description

Description of the credential.

creationTime

The date and time the credential was created.

lastModifiedTime

The date and time the credential was last changed.

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 Credentials
Operations on Automation