Pub/Sub 소스
개요
이러한 API 작업을 사용하여 다음과 상호 작용하세요 게시/구독 소스 Panther에서.
필요한 권한
다음의 경우
GET작업의 경우, API 토큰에는 다음이 있어야 합니다로그 소스 보기권한이 있어야 합니다.다음의 경우
POST,PUT, 그리고DELETE작업의 경우, API 토큰에는 다음이 있어야 합니다로그 소스 관리권한이 있어야 합니다.
작업
put updates a pubsub source
ID of the pubsub source to update
The GCP credentials JSON content (service account key or WIF config). Required on create, optional on update.
The type of credentials being used: service_account or wif (Workload Identity Federation).
The integration label (name)
The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, XML
The log types for parsing ingested data
The GCP project ID. Optional for service_account credentials (derived from the keyfile). Required for WIF.
Optional regional endpoint override (e.g. europe-west3). If not set, the global endpoint is used.
The GCP Pub/Sub subscription ID
OK response.
The GCP credentials JSON content (service account key or WIF config). Required on create, optional on update.
The type of credentials being used: service_account or wif (Workload Identity Federation).
The id of the pubsub source
The integration label (name)
The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, XML
The log types for parsing ingested data
The GCP project ID. Optional for service_account credentials (derived from the keyfile). Required for WIF.
Optional regional endpoint override (e.g. europe-west3). If not set, the global endpoint is used.
The GCP Pub/Sub subscription ID
bad_request: Bad Request response.
not_found: Not Found response.
exists: Conflict response.
service: Internal Server Error response.
PUT /log-sources/pubsub/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 277
{
"credentials": "text",
"credentialsType": "service_account",
"integrationLabel": "text",
"logStreamType": "Auto",
"logStreamTypeOptions": {
"jsonArrayEnvelopeField": "text",
"xmlRootElement": "text"
},
"logTypes": [
"text"
],
"projectId": "text",
"regionalEndpoint": "text",
"subscriptionId": "text"
}{
"credentials": "text",
"credentialsType": "service_account",
"integrationId": "text",
"integrationLabel": "text",
"logStreamType": "Auto",
"logStreamTypeOptions": {
"jsonArrayEnvelopeField": "text",
"xmlRootElement": "text"
},
"logTypes": [
"text"
],
"projectId": "text",
"regionalEndpoint": "text",
"subscriptionId": "text"
}The GCP credentials JSON content (service account key or WIF config). Required on create, optional on update.
The type of credentials being used: service_account or wif (Workload Identity Federation).
The integration label (name)
The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, XML
The log types for parsing ingested data
The GCP project ID. Optional for service_account credentials (derived from the keyfile). Required for WIF.
Optional regional endpoint override (e.g. europe-west3). If not set, the global endpoint is used.
The GCP Pub/Sub subscription ID
Created response.
The GCP credentials JSON content (service account key or WIF config). Required on create, optional on update.
The type of credentials being used: service_account or wif (Workload Identity Federation).
The id of the pubsub source
The integration label (name)
The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, XML
The log types for parsing ingested data
The GCP project ID. Optional for service_account credentials (derived from the keyfile). Required for WIF.
Optional regional endpoint override (e.g. europe-west3). If not set, the global endpoint is used.
The GCP Pub/Sub subscription ID
bad_request: Bad Request response.
exists: Conflict response.
service: Internal Server Error response.
POST /log-sources/pubsub HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 277
{
"credentials": "text",
"credentialsType": "service_account",
"integrationLabel": "text",
"logStreamType": "Auto",
"logStreamTypeOptions": {
"jsonArrayEnvelopeField": "text",
"xmlRootElement": "text"
},
"logTypes": [
"text"
],
"projectId": "text",
"regionalEndpoint": "text",
"subscriptionId": "text"
}{
"credentials": "text",
"credentialsType": "service_account",
"integrationId": "text",
"integrationLabel": "text",
"logStreamType": "Auto",
"logStreamTypeOptions": {
"jsonArrayEnvelopeField": "text",
"xmlRootElement": "text"
},
"logTypes": [
"text"
],
"projectId": "text",
"regionalEndpoint": "text",
"subscriptionId": "text"
}ID of the pubsub source to fetch
OK response.
The GCP credentials JSON content (service account key or WIF config). Required on create, optional on update.
The type of credentials being used: service_account or wif (Workload Identity Federation).
The id of the pubsub source
The integration label (name)
The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, XML
The log types for parsing ingested data
The GCP project ID. Optional for service_account credentials (derived from the keyfile). Required for WIF.
Optional regional endpoint override (e.g. europe-west3). If not set, the global endpoint is used.
The GCP Pub/Sub subscription ID
bad_request: Bad Request response.
not_found: Not Found response.
service: Internal Server Error response.
GET /log-sources/pubsub/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
{
"credentials": "text",
"credentialsType": "service_account",
"integrationId": "text",
"integrationLabel": "text",
"logStreamType": "Auto",
"logStreamTypeOptions": {
"jsonArrayEnvelopeField": "text",
"xmlRootElement": "text"
},
"logTypes": [
"text"
],
"projectId": "text",
"regionalEndpoint": "text",
"subscriptionId": "text"
}ID of the pubsub source to delete
No Content response.
No content
bad_request: Bad Request response.
service: Internal Server Error response.
DELETE /log-sources/pubsub/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
No content
마지막 업데이트
도움이 되었나요?

