You need to enable JavaScript to run this app.
导航
ListArtifactRegistries
最近更新时间:2025.01.23 14:19:43首次发布时间:2025.01.23 14:19:43

查询制品仓库实例。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com/?Action=ListArtifactRegistries&Version=2025-01-01

请求参数

参数名类型是否必选示例值描述
ActionStringListArtifactRegistries接口名称。当前 API 的名称为ListArtifactRegistries
VersionString2025-01-01接口版本,当前 API 的版本为2025-01-01
FilterObject RegistryFilter-查询制品仓库实例的过滤条件。

PageSize

Integer

10

单页展示的仓库实例数量,整数形式:

  • 默认值为 10。
  • 取值范围为 1~100。

PageNumber

Integer

1

当前页数,整数形式:

  • 默认值为 1。
  • 取值范围为 1~2147483647。

请求示例

POST https://open.volcengineapi.com/?Action=ListArtifactRegistries&Version=2025-01-01
Content-Type: application/json
{
    "Filter": {
    	"Names": ["tt1", "jt*tt", "*test", "li*"],
    	"Formats": ["Maven"],
    	"Modes": ["Hosted"]
    }
}

返回参数

参数名类型示例描述
TotalCountInteger1查询获得的仓库实例数量。
ItemsArray of Registry-制品仓库实例列表。
PageSizeInteger10单页展示的仓库实例数量。整数形式,默认为 10 个,取值范围为 1~100。
PageNumberInteger1当前页数。整数形式,从 1 开始,默认为 1。取值范围为 1~2147483647。

返回示例

HTTP/1.1: 200 OK
Content-Type: application/json
{
    "ResponseMetadata": {
        "RequestId": "20250604110420****100232280022D31",
        "Action": "ListArtifactRegistries",
        "Version": "2025-01-01",
        "Service": "artifacts",
        "Region": "cn-north-1"
    },
    "Result": {
    	"TotalCount": 1,
    	"Item": [
    		{
    			"Endpoint": "https://artifacts-cn-beijing/repository/***",
    			"Registry": "artifact-demo",
    			"Format": "Maven",
    			"Mode": "Hosted",
    			"Public": "true",
    			"Description": "this is a artifactes",
    			"WritePolicy": "Allow",
    			"Status": {
    				"Phase": "Running",
    				"Conditions": ["Ok"]
    			},
    			"MavenRegistryConfig": {
    				"VersionPolicy": "Release",
    				"LayoutPolicy": "Strict"
    			},
    			"CreateTime": "2025-01-01T00:00:00Z",
    			"UpdateTime": "2025-01-01T00:00:00Z"
    		}
    	]
    }
}