in src/libs/apiService.ts [264:297]
async listRoutineCanaryAreas(): Promise<ListRoutineCanaryAreasRes | null> {
try {
let params = {
action: 'ListRoutineCanaryAreas',
version: '2024-09-10',
protocol: 'https',
method: 'GET',
authType: 'AK',
bodyType: 'json',
reqBodyType: 'json',
style: 'RPC',
pathname: '/',
toMap: function () {
return this;
}
};
let request = new $OpenApi.OpenApiRequest();
let runtime = {
toMap: function () {
return this;
}
};
const res = await this.client.callApi(params, request, runtime);
if (res.statusCode === 200 && res.body) {
const ret: ListRoutineCanaryAreasRes = {
CanaryAreas: res.body.CanaryAreas
};
return ret;
}
} catch (error) {
console.log(error);
}
return null;
}