Resource Links - Create Or Update

Creates or updates a resource link between the specified resources.

PUT https://management.azure.com/{linkId}?api-version=2016-09-01

URI Parameters

Name In Required Type Description
linkId
path True
  • string

The fully qualified ID of the resource link. Use the format, /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink

api-version
query True
  • string

The API version to use for the operation.

Request Body

Name Type Description
properties

Properties for resource link.

Responses

Name Type Description
200 OK

OK - Returns information about the link.

201 Created

Created - Returns information about the link.

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

Definitions

ResourceLink

The resource link.

ResourceLinkProperties

The resource link properties.

The resource link.

Name Type Description
id
  • string

The fully qualified ID of the resource link.

name
  • string

The name of the resource link.

properties

Properties for resource link.

type
  • object

The resource link object.

ResourceLinkProperties

The resource link properties.

Name Type Description
notes
  • string

Notes about the resource link.

sourceId
  • string

The fully qualified ID of the source resource in the link.

targetId
  • string

The fully qualified ID of the target resource in the link.