跳转到主要内容
GET
/
gpu-instance
/
openapi
/
v1
/
repository
/
auths
获取镜像认证信息列表
curl --request GET \
  --url https://api.ppinfra.com/gpu-instance/openapi/v1/repository/auths \
  --header 'Authorization: <authorization>'
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "username": "<string>",
      "password": "<string>"
    }
  ]
}

请求头

Authorization
string
required
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

响应参数

data
object[]
required
镜像仓库认证列表。

示例

请求示例

curl --location --request GET 'https://api.ppinfra.com/gpu-instance/openapi/v1/repository/auths' \
--header 'Authorization: Bearer {{API 密钥}}'

响应示例

{
  "data": [
    {
      "id": "20",
      "name": "test",
      "username": "test",
      "password": "xxxxxxxx"
    }
  ]
}
I