master_tokens
search
Search for master tokens
Default is 30 per page, see response headers for pagination information.
Example request:
curl https://packagecloud.io/api/v1/repos/username/reponame/master_tokens/search?q=prod
get/api/v1/repos/{user_id}/{repo}/master_tokens/search
Path parameters
user_idstring required
The username to which the repo belongs.
repostring required
The name of the repo.
Query parameters
pageinteger
One-based page index.
per_pageinteger
Items per page (default 30). Values above the server's Max-Per-Page are clamped; inspect the Max-Per-Page response header for the effective cap.
qstring
The name of the MasterToken.
Response
Array<MasterTokensResult> An array of {MasterTokensResult} objects for this search query.
Example response
[
{
"name": "default",
"value": "e5480f5b38f1f78de2aaa0fa732d1427b1b83113371fd97d",
"self_url": "/api/v1/repos/somewhere/production/master_tokens/1",
"read_tokens_url": "/api/v1/repos/somewhere/production/master_tokens/1"
}
]