CreateContextStore
Creates a context library.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:CreateContextStore |
create |
*ContextStore
|
None | None |
Request syntax
POST /workspace/{workspace}/contextstore HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
The workspace ID. |
workspace-test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| contextStoreName |
string |
Yes |
The name of the context library. |
test-context-store |
| contextType |
string |
Yes |
The context type. |
memory |
| description |
string |
No |
The description. |
desc |
| config |
object |
No |
The configuration information. |
|
| source |
object |
No |
The configuration source. |
|
| project |
string |
No |
The name of the Simple Log Service project. |
sls-test-project |
| logstore |
string |
No |
The name of the Simple Log Service Logstore. |
sls-test-logstore |
| startTime |
string |
No |
The effective start time. |
1751508233000 |
| metadataField |
object |
No |
The metadata field. |
|
|
string |
No |
The metadata field. |
{ "project": "attributes.project", "logstore": "attributes.logstore", "agentId": "attributes.agent_id", "scene": "attributes.scene" } |
|
| dataset |
object |
No |
The dataset. |
|
| name |
string |
No |
The name of the dataset. |
test_dataset |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. |
E5B1D3D4-BB28-5996-8AD2-*********** |
Examples
Success response
JSON format
{
"requestId": "E5B1D3D4-BB28-5996-8AD2-***********"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.