Signature Algorithm v2
Applying for Security Credentials
Signature Calculation Process
curl -X POST https://console.zenlayer.com/api/v2/bmc \
-H "Authorization: ZC2-HMAC-SHA256 Credential=0D9UtpyKYcHxms5v, SignedHeaders=content-type;host, Signature=efb356c32e55c781e10dc676da59462c22596d82e91c57803666243379555b2f" \
-H "Content-Type: application/json; charset=utf-8" \
-H "X-ZC-Action: DescribeInstances" \
-H "X-ZC-Timestamp: 1673361177" \
-H "X-ZC-Signature-Method: ZC2-HMAC-SHA256" \
-H "X-ZC-Version: 2022-11-20" \
-d '{"pageSize":10,"pageNum":1,"zoneId":"HKG-A"}'Key
Explanation
Example
1. Concatenating the CanonicalRequest String
Field Name
Explanation
2. Concatenating the String to Be Signed
Field Name
Explanation
3. Calculating the Signature Based on AK and StringToSign
Field Name
Explanation
4. Concatenating the Authorization
Field Name
Explanation
Last updated