Mengkueri informasi repositori.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:GetRepository |
get |
*Repository
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
cri-kmsiwlxxdcva**** |
| RepoId |
string |
No |
ID repositori. Operasi API ini mendukung kueri berdasarkan RepoId, atau berdasarkan kombinasi RepoNamespaceName dan RepoName. |
crr-03cuozrsqhkw**** |
| RepoNamespaceName |
string |
No |
Nama namespace repositori. Operasi API ini mendukung kueri berdasarkan RepoId, atau berdasarkan kombinasi RepoNamespaceName dan RepoName. |
test |
| RepoName |
string |
No |
Nama repositori. Operasi API ini mendukung kueri berdasarkan RepoId, atau berdasarkan kombinasi RepoNamespaceName dan RepoName. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Summary |
string |
Informasi ringkasan. |
Automatically created repository |
| CreateTime |
integer |
Pengatur waktu pembuatan. |
1570759546000 |
| IsSuccess |
boolean |
Apakah permintaan berhasil. |
true |
| InstanceId |
string |
ID instans. |
cri-kmsiwlxxdcva**** |
| RepoStatus |
string |
Status repositori. |
NORMAL |
| RepoType |
string |
Tipe repositori. Nilai valid:
|
PRIVATE |
| RepoBuildType |
string |
Tipe build repositori. Nilai valid:
|
MANUAL |
| ModifiedTime |
integer |
Pengatur waktu modifikasi terakhir. |
1570759546100 |
| RequestId |
string |
ID permintaan. |
915E6734-3E50-4640-8DBA-126D2D94DE29 |
| RepoId |
string |
ID repositori. |
crr-l5eoubonp0l**** |
| Code |
string |
Kode pengembalian. |
success |
| RepoNamespaceName |
string |
Nama namespace. |
test |
| TagImmutability |
boolean |
Imutabilitas tag image. Nilai valid:
|
true |
| RepoName |
string |
Nama repositori. |
test |
| Detail |
string |
Informasi detail. |
test |
| ResourceGroupId |
string |
ID kelompok sumber daya. |
rg-acfmv36i4is**** |
Contoh
Respons sukses
JSONformat
{
"Summary": "Automatically created repository",
"CreateTime": 1570759546000,
"IsSuccess": true,
"InstanceId": "cri-kmsiwlxxdcva****",
"RepoStatus": "NORMAL",
"RepoType": "PRIVATE",
"RepoBuildType": "MANUAL",
"ModifiedTime": 1570759546100,
"RequestId": "915E6734-3E50-4640-8DBA-126D2D94DE29",
"RepoId": "crr-l5eoubonp0l****",
"Code": "success",
"RepoNamespaceName": "test",
"TagImmutability": true,
"RepoName": "test",
"Detail": "test",
"ResourceGroupId": "rg-acfmv36i4is****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.