All ECS resource lifecycle management APIs require authentication to
ensure the security of API calls.Obtaining Authentication Credentials#
1. Registration#
2. Obtain API Authentication Credentials#
Please contact customer support to obtain your API authentication
credentials.Important Note: If your authentication credentials are leaked,
please contact customer support immediately to obtain a new token.All API requests must include authentication information in the HTTP
headers:Code Examples#
Python Example#
JavaScript Example#
curl Example#
Handling Authentication Failures#
Common Error Codes#
401 Unauthorized: Authentication information is missing or
invalid.
Troubleshooting Steps#
1.
Check whether the x-open-token is copied correctly and ensure there
are no extra spaces.
2.
Verify whether the key is in the "enabled" state.
3.
Check whether the key has expired or been revoked.
Modified at 2025-09-24 05:42:51