데이터 모델
데이터 모델용 REST API 작업
개요
필요한 권한
작업
The python body of the data model
The description of the data model
The name used for the data model
enables/disables a data model
The id of the data model
The log type this data model should associate to. NOTE: only one data model can be assigned to a log type
OK response.
The python body of the data model
The description of the data model
The name used for the data model
enables/disables a data model
The id of the data model
The log type this data model should associate to. NOTE: only one data model can be assigned to a log type
bad_request: Bad Request response.
exists: Conflict response.
POST /data-models HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"body": "text",
"description": "text",
"displayName": "text",
"enabled": true,
"id": "text",
"logTypes": [
"text"
],
"mappings": [
{
"method": "text",
"name": "text",
"path": "text"
}
]
}{
"body": "text",
"createdAt": "text",
"description": "text",
"displayName": "text",
"enabled": true,
"id": "text",
"lastModified": "text",
"logTypes": [
"text"
],
"mappings": [
{
"method": "text",
"name": "text",
"path": "text"
}
]
}ID of the data model to fetch
OK response.
The python body of the data model
The description of the data model
The name used for the data model
enables/disables a data model
The id of the data model
The log type this data model should associate to. NOTE: only one data model can be assigned to a log type
not_found: Not Found response.
GET /data-models/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
{
"body": "text",
"createdAt": "text",
"description": "text",
"displayName": "text",
"enabled": true,
"id": "text",
"lastModified": "text",
"logTypes": [
"text"
],
"mappings": [
{
"method": "text",
"name": "text",
"path": "text"
}
]
}the id of the data model
The python body of the data model
The description of the data model
The name used for the data model
enables/disables a data model
The id of the data model
The log type this data model should associate to. NOTE: only one data model can be assigned to a log type
200 returned if the item already existed
The python body of the data model
The description of the data model
The name used for the data model
enables/disables a data model
The id of the data model
The log type this data model should associate to. NOTE: only one data model can be assigned to a log type
201 returned if the item was created
bad_request: Bad Request response.
PUT /data-models/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"body": "text",
"description": "text",
"displayName": "text",
"enabled": true,
"id": "text",
"logTypes": [
"text"
],
"mappings": [
{
"method": "text",
"name": "text",
"path": "text"
}
]
}{
"body": "text",
"createdAt": "text",
"description": "text",
"displayName": "text",
"enabled": true,
"id": "text",
"lastModified": "text",
"logTypes": [
"text"
],
"mappings": [
{
"method": "text",
"name": "text",
"path": "text"
}
]
}ID of the data model to delete
No Content response.
No content
bad_request: Bad Request response.
not_found: Not Found response.
DELETE /data-models/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
No content
the pagination token
the maximum results to return
100OK response.
pagination token for the next page of results
GET /data-models HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
OK response.
{
"next": "text",
"results": [
{
"body": "text",
"createdAt": "text",
"description": "text",
"displayName": "text",
"enabled": true,
"id": "text",
"lastModified": "text",
"logTypes": [
"text"
],
"mappings": [
{
"method": "text",
"name": "text",
"path": "text"
}
]
}
]
}마지막 업데이트
도움이 되었나요?

