CreateServiceRecord
Creates a service association entry to configure associations for the application monitoring service, such as log associations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:CreateServiceRecord |
create |
*Workspace
|
None | None |
Request syntax
POST /workspace/{workspace}/service/{serviceId}/record HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
The name of the workspace. |
workspace-test |
| serviceId |
string |
Yes |
The ID of the service. |
em87vd@c2e25bcfe0e21ce0*** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| recordType |
string |
Yes |
The type of the association entry. Valid values:
Valid values:
|
logCorrelation |
| recordContent |
string |
Yes |
The content of the entry. The value is a JSON string. The format varies based on the recordType. |
{ "project": "proj-xtrace-16c988dcfe21fcb73c5e6f234927d998-cn-hangzhou", "storeName": "app-biz-log", "regionId": "cn-hangzhou", "bindType": "logstore", "traceIdRelateField": "" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
8FDE2569-626B-5176-9844-28877A***** |
Examples
Success response
JSON format
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.