All Products
Search
Document Center

Function Compute:GetAccountSettings

Last Updated:Jun 02, 2023

Queries available zones within the current account.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /2021-04-06/account-settings

Request parameters

ParameterTypeRequiredDescriptionExample
X-Fc-Account-IdstringNo

The ID of your Alibaba Cloud account.

188077086902****
X-Fc-DatestringNo

Example 1

Wed, 11 May 2022 09:00:00 GMT
X-Fc-Trace-IdstringNo

Queries available zones within the current account.

rid281s******

Response parameters

ParameterTypeDescriptionExample
object

{"name":"GetAccountSettings","product":"FC-Open","version":"2021-04-06","path":"/2021-04-06/account-settings","deprecated":0,"method":"GET","protocol":"HTTP|HTTPS","hidden":0,"timeout":10000,"parameter_type":"Single","params":"[{"name":"X-Fc-Account-Id","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","enumValueTitles":{"1":"1"},"description":"The ID of your Alibaba Cloud account. ","example":"188077086902****"},{"name":"X-Fc-Date","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The time when Function Compute API is called. Specify the time in the EEE,d MMM yyyy HH:mm:ss GMT format. ","example":"Wed, 11 May 2022 09:00:00 GMT"},{"name":"X-Fc-Trace-Id","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The custom request ID. ","example":"rid281s******"}]","response_headers":"[]","response":"{"type":"Object","children":[{"name":"availableAZs","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"Array","subType":"String","example":"{\"availableAZs\": [ \"cn-hangzhou-f\", \"cn-hangzhou-g\" ], \"defaultRole\": \"acs:ram::1234:role/aliyunfcdefaultrole\" }","description":"The available zone where the instance resides. ","title":"The list of available zones."},{"name":"defaultRole","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"默认服务角色","description":"The default RAM role.","example":"acs:ram::1234:role/aliyunfcdefaultrole"}],"title":"Schema of Response","description":"The returned data. "}","errors":"{}"}

availableAZsarray

Liuxia

string
{"availableAZs": [ "cn-hangzhou-f", "cn-hangzhou-g" ], "defaultRole": "acs:ram::1234:role/aliyunfcdefaultrole" }

Examples

Sample success responses

JSONformat

{
  "availableAZs": [
    "{\"availableAZs\": [     \"cn-hangzhou-f\",     \"cn-hangzhou-g\"   ],   \"defaultRole\": \"acs:ram::1234:role/aliyunfcdefaultrole\" }"
  ],
  "defaultRole": "acs:ram::1234:role/aliyunfcdefaultrole"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-06-30The response structure of the API operation changes.
Change itemChange content
Output ParametersThe response structure of the API operation changes.
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
    Added Input Parameters: X-Fc-Code-Checksum
    Added Input Parameters: X-Fc-Log-Type
    Added Input Parameters: X-Fc-Invocation-Type
    Added Input Parameters: X-Fc-Date
    Added Input Parameters: X-Fc-Trace-Id
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
2021-06-30The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    delete Input Parameters: X-Fc-Account-Id