API 토큰
API 토큰에 대한 REST API 작업
개요
이러한 API 작업을 사용하여 다음과 상호 작용하세요 API 토큰 Panther에서. API 토큰은 다음을 사용하여 자체적으로 순환할 수 있습니다. POST api-tokens/self/rotate 엔드포인트.
API를 호출하려면, 다음을 참조하세요 Panther REST API 사용 방법 지침—다음을 포함하여 이 문서 페이지에서 직접 호출하는 방법에 대한 안내.
필요한 권한
다음의 경우
GET작업의 경우, API 토큰에는 다음이 있어야 합니다API 토큰 정보 읽기권한이 있어야 합니다.다음의 경우
POST및DELETE작업의 경우, API 토큰에는 다음이 있어야 합니다API 토큰 관리권한이 있어야 합니다.
다음을 참조하세요: Console과 API의 권한 이름 에서 추가 정보를 확인하세요.
작업
The set of CIDR blocks that are allowed to use this API token. If empty, all CIDR blocks are allowed
The name of the token
OK response.
The set of CIDR blocks that are allowed to use this API token. If empty, all CIDR blocks are allowed
Time when the API token was created
Time when the API token will expire. Will be null if the token is non-expiring
The unique identifier of the token
The last time this token was used to authenticate
The name of the token
Time when the API token was rotated
Time when the API token was updated
The API token value, only populated during create and rotate actions
bad_request: Bad Request response.
POST /api-tokens HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"allowedCIDRBlocks": [
"text"
],
"name": "text",
"permissions": [
"AIRunAsModify"
]
}{
"allowedCIDRBlocks": [
"text"
],
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"expiresAt": "text",
"id": "text",
"lastUsedAt": "text",
"name": "text",
"permissions": [
"AIRunAsModify"
],
"rotatedAt": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
},
"value": "text"
}ID of the api token. Note: if self is provided, the current api token will be returned
OK response.
The set of CIDR blocks that are allowed to use this API token. If empty, all CIDR blocks are allowed
Time when the API token was created
Time when the API token will expire. Will be null if the token is non-expiring
The unique identifier of the token
The last time this token was used to authenticate
The name of the token
Time when the API token was rotated
Time when the API token was updated
The API token value, only populated during create and rotate actions
bad_request: Bad Request response.
not_found: Not Found response.
GET /api-tokens/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
{
"allowedCIDRBlocks": [
"text"
],
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"expiresAt": "text",
"id": "text",
"lastUsedAt": "text",
"name": "text",
"permissions": [
"AIRunAsModify"
],
"rotatedAt": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
},
"value": "text"
}ID of the api token. Note: if self is provided, the current api token will be updated
The set of CIDR blocks that are allowed to use this API token. If empty, all CIDR blocks are allowed
The name of the token
OK response.
The set of CIDR blocks that are allowed to use this API token. If empty, all CIDR blocks are allowed
Time when the API token was created
Time when the API token will expire. Will be null if the token is non-expiring
The unique identifier of the token
The last time this token was used to authenticate
The name of the token
Time when the API token was rotated
Time when the API token was updated
The API token value, only populated during create and rotate actions
bad_request: Bad Request response.
not_found: Not Found response.
POST /api-tokens/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"allowedCIDRBlocks": [
"text"
],
"name": "text",
"permissions": [
"AIRunAsModify"
]
}{
"allowedCIDRBlocks": [
"text"
],
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"expiresAt": "text",
"id": "text",
"lastUsedAt": "text",
"name": "text",
"permissions": [
"AIRunAsModify"
],
"rotatedAt": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
},
"value": "text"
}ID of the api token to delete. Note: if self is provided, the current api token will be deleted
No Content response.
No content
bad_request: Bad Request response.
not_found: Not Found response.
DELETE /api-tokens/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
No content
OK response.
Pagination token for the next page of results
GET /api-tokens HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
OK response.
{
"next": "text",
"results": [
{
"allowedCIDRBlocks": [
"text"
],
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"expiresAt": "text",
"id": "text",
"lastUsedAt": "text",
"name": "text",
"permissions": [
"AIRunAsModify"
],
"rotatedAt": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
},
"value": "text"
}
]
}ID of the api token to rotate. Note: if self is provided, the current api token will be rotated
OK response.
The set of CIDR blocks that are allowed to use this API token. If empty, all CIDR blocks are allowed
Time when the API token was created
Time when the API token will expire. Will be null if the token is non-expiring
The unique identifier of the token
The last time this token was used to authenticate
The name of the token
Time when the API token was rotated
Time when the API token was updated
The API token value, only populated during create and rotate actions
bad_request: Bad Request response.
forbidden: Forbidden response.
not_found: Not Found response.
POST /api-tokens/{id}/rotate HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
{
"allowedCIDRBlocks": [
"text"
],
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"expiresAt": "text",
"id": "text",
"lastUsedAt": "text",
"name": "text",
"permissions": [
"AIRunAsModify"
],
"rotatedAt": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
},
"value": "text"
}마지막 업데이트
도움이 되었나요?

