Registries - List Credentials

列出指定容器登錄的登入認證。

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

URI 參數

名稱 位於 必要 類型 Description
registryName
path True

string

容器登錄的名稱。

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

resourceGroupName
path True

string

資源群組的名稱。 名稱不區分大小寫。

subscriptionId
path True

string

uuid

目標訂用帳戶的標識碼。 此值必須是 UUID。

api-version
query True

string

用於此作業的 API 版本。

回應

名稱 類型 Description
200 OK

RegistryListCredentialsResult

要求成功;已成功擷取並傳回的認證清單。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

RegistryListCredentials

Sample Request

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

Sample Response

{
  "username": "myRegistry",
  "passwords": [
    {
      "name": "password",
      "value": "00000000000000000000000000000000"
    },
    {
      "name": "password2",
      "value": "00000000000000000000000000000000"
    }
  ]
}

定義

名稱 Description
PasswordName

密碼名稱。

RegistryListCredentialsResult

ListCredentials 作業的回應。

RegistryPassword

容器登錄的登入密碼。

PasswordName

密碼名稱。

名稱 類型 Description
password

string

password2

string

RegistryListCredentialsResult

ListCredentials 作業的回應。

名稱 類型 Description
passwords

RegistryPassword[]

容器登錄的密碼清單。

username

string

容器登錄的用戶名稱。

RegistryPassword

容器登錄的登入密碼。

名稱 類型 Description
name

PasswordName

密碼名稱。

value

string

密碼值。