Host in API requests
Updated at:
The Host of a Simple Log Service API request consists of the project name and the regional endpoint, in the format {project}.{endpoint}. A project name is unique only within the region to which the project belongs. Make sure that the endpoint in the Host is in the same region as the project.
Select an endpoint based on where the call is made:
Calls over the Internet — Use the public endpoint.
Calls from a VPC in the same region as the project — Use the VPC endpoint. This applies to ECS instances, containers, and other resources in the VPC.
Host components and examples
Host components
| Component | Description |
{project} | The name of the project. |
{endpoint} | The endpoint for the region. Use the public endpoint or the VPC endpoint based on the network type. |
Complete Host examples
The following examples use a project named ali-test-project in the South Korea (Seoul) region.
| Network type | Host format | Example |
| Internet | {project}.{endpoint} | ali-test-project.ap-northeast-2.log.aliyuncs.com |
| VPC | {project}.{endpoint} | ali-test-project.ap-northeast-2-internal.log.aliyuncs.com |
Is this page helpful?