azure.mgmt.resource.links.operations module

class azure.mgmt.resource.links.operations.ResourceLinksOperations(client, config, serializer, deserializer)[source]

Bases: object

ResourceLinksOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
create_or_update(link_id, properties=None, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates a resource link between the specified resources.

Parameters:
  • link_id (str) – 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
  • properties (ResourceLinkProperties) – Properties for resource link.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ResourceLink

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(link_id, custom_headers=None, raw=False, **operation_config)[source]

Deletes a resource link with the specified ID.

Parameters:
  • link_id (str) – 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
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(link_id, custom_headers=None, raw=False, **operation_config)[source]

Gets a resource link with the specified ID.

Parameters:
  • link_id (str) – The fully qualified Id of the resource link. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ResourceLink

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_at_source_scope(scope, filter=None, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of resource links at and below the specified source scope.

Parameters:
  • scope (str) – The fully qualified ID of the scope for getting the resource links. For example, to list resource links at and under a resource group, set the scope to /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.
  • filter (str) – The filter to apply when getting resource links. To get links only at the specified scope (not below the scope), use Filter.atScope().
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ResourceLinkPaged

Raises:

CloudError

list_at_subscription(filter=None, custom_headers=None, raw=False, **operation_config)[source]

Gets all the linked resources for the subscription.

Parameters:
  • filter (str) – The filter to apply on the list resource links operation. The supported filter for list resource links is targetid. For example, $filter=targetid eq {value}
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ResourceLinkPaged

Raises:

CloudError