All Products
Search
Document Center

Simple Log Service:Call API operations

Last Updated:Oct 26, 2023

This topic describes the basic information and usage notes of the Simple Log Service API.

For information about Alibaba Cloud APIs, see Overview.

Basic information

Versions

Version

Description

2020-12-30

Recommended

Endpoints

To obtain the lowest latency, select an endpoint based on the region where your Simple Log Service project resides.

For example, the Simple Log Service endpoint for the China (Zhangjiakou) region is cn-zhangjiakou.log.aliyuncs.com. For more information, see Endpoint.

Architectural style

The RESTful style is used.

Call methods

Call method

Supported

Description

Alibaba Cloud SDK (recommended)

Yes

For information about the programming languages that are supported by Simple Log Service SDKs and how to install dependencies, see Simple Log Service SDKs.

Log Service CLI

Yes

Simple Log Service provides a command-line interface (CLI). For more information, see Overview of Log Service CLI.

Cloud Shell

Yes

Cloud Shell provided by Alibaba Cloud is integrated with Simple Log Service CLI. You can use Cloud Shell to manage Simple Log Service resources and download data from Simple Log Service without the need to deploy or configure Simple Log Service CLI. For more information, see Overview of Cloud Shell.

Terraform

Yes

Terraform is an open source tool that is used to securely and efficiently preview, configure, and manage cloud infrastructure and resources. Terraform works in a similar mechanism as Resource Orchestration Service (ROS). It calls API operations by interpreting templates. For more information, see What is Terraform?

If the preceding methods cannot meet your business requirements, you can encapsulate the API requests based on your business requirements. This method is not recommended. For more information, see Encapsulate API requests.

Usage notes

If an error is returned after you call an API operation, you must check whether the values of the request parameters are valid based on the returned error code. For more information, see Error codes.

You can also use the Alibaba Cloud OpenAPI Diagnostics platform to perform self-service diagnostics based on the returned request ID or SDK error information.