Queries information about repositories.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request information

Request line

GET /repos HTTP/1.1

Request line parameters

Parameter Type Required Description
Status String Yes The status of the repository.
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": String
}

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.
regionId String The region where the repository is deployed.
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 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": "test1",
        "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": "test2",
        "repoName": "Test2",
        "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"
}