All Products
Search
Document Center

Simple Log Service:Automatic integration

Last Updated:Sep 05, 2024

Simple Log Service provides a large number of API operations. You can call the API operations by using Alibaba Cloud SDKs in OpenAPI Explorer. Simple Log Service has developed Simple Log Service SDKs and Simple Log Service command-line interface (CLI) to meet the requirements on the lightweight log collection from embedded or smart devices.

API integration

Simple Log Service provides API operations to manage resources, such as projects, Logstores, and machine groups. You can call the API operations by using Simple Log Service SDKs in your business system or encapsulating your API requests based on your business requirements. For more information about how to call Alibaba Cloud API operations, see Use OpenAPI.

API versions

API version

Description

2020-12-30

Recommend. For more information, see API overview.

Endpoints

To minimize latency, we recommend that you 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 Endpoints.

User identities

User identity

Supported

Alibaba Cloud account

Yes

RAM user

Yes

RAM role

Yes

We recommend that you use a Resource Access Management (RAM) user or a RAM role to call API operations. Before you use a RAM user or a RAM role to call API operations, you must grant the required permissions to the RAM user or the RAM role.

Calling methods

Calling method

Supported

Description

Alibaba Cloud SDKs (recommended)

Yes

For more information, see Alibaba Cloud SDKs.

Alibaba Cloud CLI

No

You cannot use Alibaba Cloud CLI to call the API operations of Simple Log Service. Simple Log Service has developed Simple Log Service CLI. For more information, see Overview of Simple Log Service CLI.

Custom encapsulation

Yes

You can encapsulate API requests based on your business requirements. For more information, see Custom encapsulation.

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 visit OpenAPI Errors Troubleshooting to perform self-service diagnostics based on the returned request ID or SDK error information.

Orchestration tool integration

Simple Log Service allows you to call API operations by using common orchestration tools.

Orchestration tool

Supported

Description

Resource Orchestration Service (ROS)

Yes

For more information about supported resource types, see SLS.

Terraform

Yes

Integration of Simple Log Service SDKs and Simple Log Service CLI

In addition to the resource management capability provided by Alibaba Cloud SDKs, Simple Log Service SDKs are available in multiple programming languages. Simple Log Service also provides a powerful command line tool to help you collect, query, and analyze logs.

Visualization integration

Simple Log Service allows you to call API operations in a visualized manner. For example, you can call API operations on web pages or by using DataV. For more information, see Visualization development.