All Products
Search
Document Center

Simple Log Service:CreateResourceRecord

Last Updated:Aug 28, 2026

Creates a resource record.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /resources/{resourceName}/records HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

resourceName

string

Yes

The resource name.

sls.alert.user

Request parameters

Parameter

Type

Required

Description

Example

body ResourceRecord

Yes

The resource record to create.

Response elements

Element

Type

Description

Example

object

id

string

The ID of the created record.

record-001

Examples

Success response

JSON format

{
  "id": "record-001"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.