Connection - Update

Update a connection.

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

URI Parameters

Name In Required Type Description
automationAccountName
path True

string

The name of the automation account.

connectionName
path True

string

The parameters supplied to the update a connection operation.

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.

Request Body

Name Type Description
name

string

Gets or sets the name of the connection.

properties.description

string

Gets or sets the description of the connection.

properties.fieldDefinitionValues

object

Gets or sets the field definition values of the connection.

Responses

Name Type Description
200 OK

Connection

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

Update a connection

Sample Request

PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection?api-version=2023-11-01

{
  "name": "myConnection",
  "properties": {
    "description": "my description goes here",
    "fieldDefinitionValues": {
      "AutomationCertificateName": "myCertificateName",
      "SubscriptionID": "b5e4748c-f69a-467c-8749-e2f9c8cd3009"
    }
  }
}

Sample Response

{
  "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount29/connections/myConnection",
  "name": "myConnection",
  "properties": {
    "creationTime": "2017-03-27T08:21:29.313+00:00",
    "lastModifiedTime": "2017-03-27T08:21:30.093+00:00",
    "description": "my description goes here",
    "fieldDefinitionValues": {
      "AutomationCertificateName": "myCertificateName",
      "SubscriptionID": "b5e4748c-f69a-467c-8749-e2f9c8cd3009"
    },
    "connectionType": {
      "name": "Azure"
    }
  }
}

Definitions

Name Description
Connection

Definition of the connection.

ConnectionTypeAssociationProperty

The connection type property associated with the entity.

ConnectionUpdateParameters

The parameters supplied to the update connection operation.

ErrorResponse

Error response of an operation failure

Connection

Definition of the connection.

Name Type Description
id

string

Fully qualified resource Id for the resource

name

string

The name of the resource

properties.connectionType

ConnectionTypeAssociationProperty

Gets or sets the connectionType of the connection.

properties.creationTime

string

Gets the creation time.

properties.description

string

Gets or sets the description.

properties.fieldDefinitionValues

object

Gets the field definition values of the connection.

properties.lastModifiedTime

string

Gets the last modified time.

type

string

The type of the resource.

ConnectionTypeAssociationProperty

The connection type property associated with the entity.

Name Type Description
name

string

Gets or sets the name of the connection type.

ConnectionUpdateParameters

The parameters supplied to the update connection operation.

Name Type Description
name

string

Gets or sets the name of the connection.

properties.description

string

Gets or sets the description of the connection.

properties.fieldDefinitionValues

object

Gets or sets the field definition values of the connection.

ErrorResponse

Error response of an operation failure

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.