Bir kimlik doğrulama belirteci alır. Bir Container Service for Kubernetes (ACK) kümesini İnternet üzerinden Prometheus Service'e bağladığınızda, kimlik doğrulama için bir belirteç kullanmanız gerekir.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:GetAuthToken |
none |
*Prometheus
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ACK kümesinin kimliği. |
cc7a37ee31aea4ed1a059eff8034b**** |
| RegionId |
string |
Yes |
Bölge kimliği. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
string |
Döndürülen kimlik doğrulama belirteci. |
eyJhbGciOiJIUzI1NiJ9****** |
| RequestId |
string |
İsteğin kimliği. |
1A9C645C-C83F-4C9D-8CCB-29BEC9E1**** |
| Code |
integer |
Durum kodu. 200 başarı, diğer durum kodları ise istisna anlamına gelir. |
200 |
| Message |
string |
Ek bilgiler. |
success |
| Success |
boolean |
Sorgunun başarılı olup olmadığını belirtir:\n- true: Başarılı\n- false: Başarısız. |
true |
Examples
Success response
JSON format
{
"Data": "eyJhbGciOiJIUzI1NiJ9******",
"RequestId": "1A9C645C-C83F-4C9D-8CCB-29BEC9E1****",
"Code": 200,
"Message": "success",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.