Registries - Get Private Link Resource

Gets a private link resource by a specified group name for a container registry.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources/{groupName}?api-version=2023-01-01-preview

URI Parameters

Name In Required Type Description
groupName
path True

string

The name of the private link resource.

registryName
path True

string

The name of the container registry.

Regex pattern: ^[a-zA-Z0-9]*$

resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

PrivateLinkResource

The request was successful; the private link resource was retrieved and returned successfully.

Other Status Codes

ErrorResponse

Error response describing why the operation failed. If the resource does not exist, 404 (Not found) is returned.

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

RegistryGetPrivateLinkResource

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/privateLinkResources/registry?api-version=2023-01-01-preview

Sample Response

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/privateLinkResources/registry",
  "name": "registry",
  "type": "Microsoft.ContainerRegistry/registries/privateLinkResources",
  "properties": {
    "groupId": "registry",
    "requiredMembers": [
      "registry",
      "registry_data_myregion"
    ],
    "requiredZoneNames": [
      "privatelink.azurecr.io"
    ]
  }
}

Definitions

Name Description
ErrorResponse

An error response from the Azure Container Registry service.

ErrorResponseBody

An error response from the Azure Container Registry service.

InnerErrorDescription

inner error.

PrivateLinkResource

A resource that supports private link capabilities.

ErrorResponse

An error response from the Azure Container Registry service.

Name Type Description
error

ErrorResponseBody

Azure container registry build API error body.

ErrorResponseBody

An error response from the Azure Container Registry service.

Name Type Description
code

string

error code.

details

InnerErrorDescription[]

an array of additional nested error response info objects, as described by this contract.

message

string

error message.

target

string

target of the particular error.

InnerErrorDescription

inner error.

Name Type Description
code

string

error code.

message

string

error message.

target

string

target of the particular error.

PrivateLinkResource

A resource that supports private link capabilities.

Name Type Description
id

string

The resource ID.

name

string

The name of the resource.

properties.groupId

string

The private link resource group id.

properties.requiredMembers

string[]

The private link resource required member names.

properties.requiredZoneNames

string[]

The private link resource Private link DNS zone name.

type

string

The resource type is private link resource.