Hybrid Runbook Worker Group - Get

Retrieve a hybrid runbook worker group.

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

URI Parameters

Name In Required Type Description
automationAccountName
path True

string

The name of the automation account.

hybridRunbookWorkerGroupName
path True

string

The hybrid runbook worker group name

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

HybridRunbookWorkerGroup

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

Get a hybrid worker group

Sample Request

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

Sample Response

{
  "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup",
  "name": "TestHybridGroup",
  "type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups",
  "properties": {
    "groupType": "User",
    "credential": {
      "name": "myRunAsCredentialName"
    }
  },
  "systemData": {
    "createdBy": "foo@contoso.com",
    "createdByType": "User",
    "createdAt": "2018-04-24T16:30:55+00:00",
    "lastModifiedBy": "foo@contoso.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2018-04-24T16:30:55+00:00"
  }
}

Definitions

Name Description
createdByType

The type of identity that created the resource.

ErrorResponse

Error response of an operation failure

GroupTypeEnum

Type of the HybridWorkerGroup.

HybridRunbookWorkerGroup

Definition of hybrid runbook worker group.

RunAsCredentialAssociationProperty

Definition of RunAs credential to use for hybrid worker.

systemData

Metadata pertaining to creation and last modification of the resource.

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorResponse

Error response of an operation failure

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

GroupTypeEnum

Type of the HybridWorkerGroup.

Name Type Description
System

string

User

string

HybridRunbookWorkerGroup

Definition of hybrid runbook worker group.

Name Type Description
id

string

Fully qualified resource Id for the resource

name

string

The name of the resource

properties.credential

RunAsCredentialAssociationProperty

Sets the credential of a worker group.

properties.groupType

GroupTypeEnum

Type of the HybridWorkerGroup.

systemData

systemData

Resource system metadata.

type

string

The type of the resource.

RunAsCredentialAssociationProperty

Definition of RunAs credential to use for hybrid worker.

Name Type Description
name

string

Gets or sets the name of the credential.

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.