Certificate - List By Automation Account

Retrieve a list of certificates.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates?api-version=2023-11-01

URI Parameters

Name In Required Type Description
automationAccountName
path True

string

The name of the automation account.

resourceGroupName
path True

string

Name of an Azure Resource group.

Regex pattern: ^[-\w\._]+$

subscriptionId
path True

string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

Responses

Name Type Description
200 OK

CertificateListResult

OK

Other Status Codes

ErrorResponse

Automation error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

List certificates

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates?api-version=2023-11-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates/testCert",
      "name": "testCert",
      "properties": {
        "description": "Sample Cert",
        "isExportable": false,
        "thumbprint": "thumbprint of cert",
        "expiryTime": "2018-03-29T17:25:45+00:00",
        "creationTime": "2017-03-29T17:26:43.337+00:00",
        "lastModifiedTime": "2017-03-29T17:28:55.01+00:00"
      }
    }
  ]
}

Definitions

Name Description
Certificate

Definition of the certificate.

CertificateListResult

The response model for the list certificate operation.

ErrorResponse

Error response of an operation failure

Certificate

Definition of the certificate.

Name Type Description
id

string

Fully qualified resource Id for the resource

name

string

The name of the resource

properties.creationTime

string

Gets the creation time.

properties.description

string

Gets or sets the description.

properties.expiryTime

string

Gets the expiry time of the certificate.

properties.isExportable

boolean

Gets the is exportable flag of the certificate.

properties.lastModifiedTime

string

Gets the last modified time.

properties.thumbprint

string

Gets the thumbprint of the certificate.

type

string

The type of the resource.

CertificateListResult

The response model for the list certificate operation.

Name Type Description
nextLink

string

Gets or sets the next link.

value

Certificate[]

Gets or sets a list of certificates.

ErrorResponse

Error response of an operation failure

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.