글로벌
글로벌에 대한 REST API 작업
개요
이러한 API 작업을 사용하여 다음과 상호 작용하세요 전역 헬퍼 함수 Panther에서("global helpers" 및 단순히 "globals"라고도 함).
API를 호출하려면, 다음을 참조하세요 Panther REST API 사용 방법 지침—다음을 포함하여 이 문서 페이지에서 직접 호출하는 방법에 대한 안내.
필요한 권한
다음의 경우
GET작업의 경우, API 토큰에는 다음이 있어야 합니다규칙 보기또는정책 보기권한이 있어야 합니다.다음의 경우
POST,PUT, 그리고DELETE작업의 경우, API 토큰에는 다음이 있어야 합니다규칙 관리또는정책 관리권한이 있어야 합니다.
작업
The python body of the global
The description of the global
The id of the global
The tags for the global
OK response.
The python body of the global
The description of the global
The id of the global
The tags for the global
bad_request: Bad Request response.
exists: Conflict response.
POST /globals HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"body": "text",
"description": "text",
"id": "text",
"tags": [
"text"
]
}{
"body": "text",
"createdAt": "text",
"description": "text",
"id": "text",
"lastModified": "text",
"tags": [
"text"
]
}ID of the global to fetch
OK response.
The python body of the global
The description of the global
The id of the global
The tags for the global
not_found: Not Found response.
GET /globals/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
{
"body": "text",
"createdAt": "text",
"description": "text",
"id": "text",
"lastModified": "text",
"tags": [
"text"
]
}put creates or updates a global
The id of the global
The python body of the global
The description of the global
The tags for the global
200 returned if the item already existed
201 returned if the item was created
bad_request: Bad Request response.
PUT /globals/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"body": "text",
"description": "text",
"tags": [
"text"
]
}{
"data": {
"body": "text",
"createdAt": "text",
"description": "text",
"id": "text",
"lastModified": "text",
"tags": [
"text"
]
}
}ID of the global to delete
No Content response.
No content
bad_request: Bad Request response.
not_found: Not Found response.
DELETE /globals/{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
100Substring search by name (case-insensitive)
Only include rules whose creator matches this user ID or actor ID
Only include rules last modified by this user ID or actor ID
OK response.
pagination token for the next page of results
GET /globals 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",
"id": "text",
"lastModified": "text",
"tags": [
"text"
]
}
]
}마지막 업데이트
도움이 되었나요?

