Queries information about repositories.
Request information
Request line
GET /repos/[RepoNamespace] HTTP/1.1
Request line parameters
Parameter | Type | Required | Description |
---|---|---|---|
Status | String | Yes | The status of the repository. |
RepoNamespace | String | Yes | The namespace to which the repository belongs. |
RepoNamePrefix | String | Yes | The prefix of the repository name. |
Page | Integer | No | The number of the current page. |
PageSize | Integer | No | The number of entries to return on each page. |
Operation-specific request headers
None.
Request body
None.
Response information
Response line
HTTP/1.1 200 OK
Operation-specific response headers
None.
Response body
{
"data": {
"total": Integer,
"repos": [{
"summary": String,
"repoId": Long,
"gmtCreate": Long,
"gmtModified": Long,
"repoNamespace": String,
"repoName": String,
"repoBuildType": String,
"repoType": String,
"repoDomainList": {
"public": String,
"vpc": String
},
"regionId": String,
"repoStatus": String,
"repoAuthorizeType": String
}, {
"summary": String,
"repoId": Long,
"gmtCreate": Long,
"gmtModified": Long,
"repoNamespace": String,
"repoName": String,
"repoBuildType": String,
"repoType": String,
"repoDomainList": {
"public": String,
"vpc": String
},
"regionId": String,
"repoStatus": String,
"repoAuthorizeType": String
}],
"pageSize": Integer,
"page": Integer
},
"requestId": "F11E3C4C-LO9Q-4D11-B7C5-5EFCA8E7CA2E"
}
Response body parameters
Parameter | Type | Description |
---|---|---|
summary | String | The summary of the repository. |
repoId | Long | The unique ID of the repository. |
gmtCreate | Long | The time when the repository was created. |
gmtModified | Long | The time when the repository was modified. |
repoNamespace | String | The name of the namespace to which the repository belongs. |
repoName | String | The name of the repository. |
repoBuildType | String | Indicates how the repository was created. |
repoType | String | The type of repository. |
repoDomainList | Array | The domain names of the repository. |
downloads | Long | The number of image downloads from the repository. |
regionId | String | The region where the repository is deployed. |
logo | String | The icon of the repository. |
repoStatus | String | The status of the repository. |
repoAuthorizeType | String | The permission type of the repository. |
Page | Integer | The number of the current page. |
PageSize | Integer | The number of entries to return on each page. |
total | Integer | The total number of records. |
Examples
Sample requests
GET /repos/[RepoNamespace] HTTP/1.1
<Common request headers>
Sample responses
HTTP/1.1 200 OK
<Common response headers>
{
"data": {
"total": 2,
"repos": [{
"summary": "Test1",
"repoId": 00001,
"gmtModified": 1524663871000,
"repoNamespace": "test",
"repoName": "test_repo_1",
"gmtCreate": 1524663834000,
"repoBuildType": "AUTO_BUILD",
"repoType": "PUBLIC",
"repoDomainList": {
"public": "registry.cn-hangzhou.aliyuncs.com",
"vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
},
"regionId": "cn-hangzhou",
"repoStatus": "NORMAL",
"repoAuthorizeType": "ADMIN"
}, {
"summary": "Test2",
"repoId": 00002,
"gmtModified": 1487319003000,
"repoNamespace": "test",
"repoName": "test_repo_2",
"gmtCreate": 1487319003000,
"repoBuildType": "AUTO_BUILD",
"repoType": "PRIVATE",
"repoDomainList": {
"public": "registry.cn-hangzhou.aliyuncs.com",
"vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
},
"regionId": "cn-hangzhou",
"repoStatus": "NORMAL",
"repoAuthorizeType": "ADMIN"
}],
"pageSize": 20,
"page": 1
},
"requestId": "F11E3C4C-LO9Q-4D11-B7C5-5EFCA8E7CA2E"
}