API overview
API standards and multilingual preset SDKs
The OpenAPI of this product (Advisor/2018-01-20) uses the RPC signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.
Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.
Custom signature scenarios
If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.
Account and security preparation
Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.
Multi-dimensional inspection
|
API |
Title |
Description |
| DescribeAdvisorChecks | Retrieve inspection items | Retrieves the inspection items currently available to the user. |
| DescribeAdvices | Get Latest Inspection Results | Retrieves the latest inspection results for users based on multiple dimensions, returning all results. |
| DescribeAdvisorResources | Retrieve resource list | Retrieves the list of inspection resources. You must trigger resource information synchronization before you can obtain the latest results. |
| RefreshAdvisorCheck | Refresh and Trigger Inspection | Refreshes a check item by triggering resource metric synchronization and re-inspection. This API creates inspection tasks based on multiple input dimensions (cloud product, cloud resource, and check item name). If all dimensions are left empty, inspection tasks are created by default for all check items across all resources under the current user. |
| RefreshAdvisorResource | Sync resource information | Triggers a resource information synchronization task based on a specific product and resource ID, and returns the ID of the created task. |
| DescribeAdvicesPage | Retrieve latest inspection results by page | Retrieves the latest inspection results based on multiple dimensions and returns them in a paginated format. |
| GetTaskStatusById | Query task status | Queries the execution status of a task by task ID. |
| GetHistoryAdvices | Retrieve historical inspection results by page | Retrieves historical inspection results by page, filtered by product, date, and severity level. |
| DescribeAdvicesFlatPage | List latest inspection results (flattened) with pagination | Retrieves the latest inspection results based on multiple dimensions and returns them in a paginated format with certain fields flattened. |
Cost optimization
|
API |
Title |
Description |
| GetProductList | Retrieve all products | Retrieves the list of cloud services. |
| DescribeCostCheckResults | Aggregated cost optimization results overview for inspection items | Queries the aggregated cost optimization results overview for inspection items. |
| DescribeCostCheckAdvices | Cost optimization result details | Queries the details of cost optimization results. |
| GetInspectProgress | Retrieve task execution progress | Retrieves the execution progress of a task for a regular user or a single account in a resource directory. |
| RefreshAdvisorCostCheck | Initiate cost optimization inspection | Initiates a cost optimization inspection. |
| DescribeAdvisorChecksFoPages | List inspection items with pagination | Queries inspection items by page. |
| DescribeCostOptimizationOverview | Cost data overview | Cost optimization - Overview. |