Panther gcs source API

The GCS source API handles all operations for Google Cloud Storage log sources

GitHub OpenAPI
Business capability
Threat Detection & Response Management BC-620.30

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /log-sources/gcs Create a Google Cloud Storage log source · create gcs source #
Ask an LLM
“How do I ingest logs from a Google Cloud Storage bucket into Panther?”
“Which GCS log stream types can I choose from when creating a log source?”
Tell an agent
Create a GCS log source {integrationLabel} on bucket {gcsBucket} using {credentialsType} credentials.
Set up a {logStreamType} GCS source {integrationLabel} for subscription {subscriptionId}.
DELETE /log-sources/gcs/{id} Delete a Google Cloud Storage log source · delete gcs source #
Ask an LLM
“How do I stop log ingestion from a Google Cloud Storage bucket?”
“Can I remove a GCS log source by its ID?”
Tell an agent destructive · confirm first
Delete GCS log source {id}.
Remove the GCS log source {id} from Panther.
GET /log-sources/gcs/{id} Get a Google Cloud Storage log source · get gcs source #
Ask an LLM
“What bucket and subscription does a given GCS log source use?”
“Can I look up a GCS log source by its ID?”
Tell an agent
Show GCS log source {id}.
Get the configuration of GCS log source {id}.
PUT /log-sources/gcs/{id} Update a Google Cloud Storage log source · put gcs source #
Ask an LLM
“How do I change the bucket or subscription of an existing GCS log source?”
“Can I update the log stream type of a GCS log source?”
Tell an agent
Update GCS log source {id} to use bucket {gcsBucket} and subscription {subscriptionId}.
Change the log stream type of GCS log source {id} to {logStreamType}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/panther:panther-gcs-source-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

panther-gcs-source-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Panther REST gcs source API
  version: '1.0'
  description: The GCS source API handles all operations for Google Cloud Storage log sources
servers:
- url: https://{api_host}
  variables:
    api_host:
      default: your-api-host
security:
- ApiKeyAuth: []
tags:
- name: gcs source
  description: The GCS source API handles all operations for Google Cloud Storage log sources
paths:
  /log-sources/gcs:
    post:
      tags:
      - gcs source
      summary: create gcs source
      operationId: gcsSource#create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GcsSourceAPI.ModifyGcsSource'
      responses:
        '201':
          description: Created response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.GcsSource'
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.BadRequestError'
        '409':
          description: 'exists: Conflict response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.ExistsError'
        '500':
          description: 'service: Internal Server Error response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.ServiceError'
      x-operation-id-source: normalized
      x-operation-id-original: gcs source#create
  /log-sources/gcs/{id}:
    delete:
      tags:
      - gcs source
      summary: delete gcs source
      operationId: gcsSource#delete
      parameters:
      - name: id
        in: path
        description: ID of the GCS source to delete
        required: true
        schema:
          type: string
          description: ID of the GCS source to delete
      responses:
        '204':
          description: No Content response.
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.BadRequestError'
        '500':
          description: 'service: Internal Server Error response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.ServiceError'
      x-operation-id-source: normalized
      x-operation-id-original: gcs source#delete
    get:
      tags:
      - gcs source
      summary: get gcs source
      operationId: gcsSource#get
      parameters:
      - name: id
        in: path
        description: ID of the GCS source to fetch
        required: true
        schema:
          type: string
          description: ID of the GCS source to fetch
      responses:
        '200':
          description: OK response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.GcsSource'
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.BadRequestError'
        '404':
          description: 'not_found: Not Found response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.NotFoundError'
        '500':
          description: 'service: Internal Server Error response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.ServiceError'
      x-operation-id-source: normalized
      x-operation-id-original: gcs source#get
    put:
      tags:
      - gcs source
      summary: put gcs source
      operationId: gcsSource#put
      parameters:
      - name: id
        in: path
        description: ID of the GCS source to update
        required: true
        schema:
          type: string
          description: ID of the GCS source to update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GcsSourceAPI.ModifyGcsSource'
      responses:
        '200':
          description: OK response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.GcsSource'
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.BadRequestError'
        '404':
          description: 'not_found: Not Found response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.NotFoundError'
        '409':
          description: 'exists: Conflict response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.ExistsError'
        '500':
          description: 'service: Internal Server Error response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GcsSourceAPI.ServiceError'
      x-operation-id-source: normalized
      x-operation-id-original: gcs source#put
components:
  schemas:
    GcsSourceAPI.GcsSource:
      type: object
      properties:
        credentials:
          type: string
          description: The GCP credentials JSON content (service account key or WIF config). Required on create, optional on update.
        credentialsType:
          type: string
          description: 'The type of credentials being used: service_account or wif (Workload Identity Federation).'
          enum:
          - service_account
          - wif
        gcsBucket:
          type: string
          description: The GCS bucket name
        integrationId:
          type: string
          description: The id of the GCS source
        integrationLabel:
          type: string
          description: The integration label (name)
        logStreamType:
          type: string
          description: 'The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, XML'
          enum:
          - Auto
          - JSON
          - JsonArray
          - Lines
          - XML
        logStreamTypeOptions:
          $ref: '#/components/schemas/GcsSourceAPI.LogStreamTypeOptions'
        prefixLogTypes:
          type: array
          items:
            $ref: '#/components/schemas/GcsSourceAPI.PrefixLogTypesMapping'
          description: Prefix-based log type mappings for parsing ingested data
        projectId:
          type: string
          description: The GCP project ID. Optional for service_account credentials. Required for WIF.
        subscriptionId:
          type: string
          description: The GCP Pub/Sub subscription ID used to receive GCS bucket notifications
    GcsSourceAPI.NotFoundError:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    GcsSourceAPI.ExistsError:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    GcsSourceAPI.PrefixLogTypesMapping:
      type: object
      properties:
        excludedPrefixes:
          type: array
          items:
            type: string
          description: Prefixes to exclude from matching. Supports '*' as a wildcard for dynamic path segments.
        logTypes:
          type: array
          items:
            type: string
          description: The log types (schemas) to apply for this prefix
        prefix:
          type: string
          description: GCS prefix to match. Leave empty to match all files in the bucket.
    GcsSourceAPI.BadRequestError:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    GcsSourceAPI.LogStreamTypeOptions:
      type: object
      properties:
        jsonArrayEnvelopeField:
          type: string
          description: Path to the array value to extract elements from, only applicable if logStreamType is JsonArray. Leave empty if the input JSON is an array itself
        xmlRootElement:
          type: string
          description: The root element name for XML streams, only applicable if logStreamType is XML. Leave empty if the XML events are not enclosed in a root element
    GcsSourceAPI.ServiceError:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    GcsSourceAPI.ModifyGcsSource:
      type: object
      properties:
        credentials:
          type: string
          description: The GCP credentials JSON content (service account key or WIF config). Required on create, optional on update.
        credentialsType:
          type: string
          description: 'The type of credentials being used: service_account or wif (Workload Identity Federation).'
          enum:
          - service_account
          - wif
        gcsBucket:
          type: string
          description: The GCS bucket name
        integrationLabel:
          type: string
          description: The integration label (name)
        logStreamType:
          type: string
          description: 'The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, XML'
          enum:
          - Auto
          - JSON
          - JsonArray
          - Lines
          - XML
        logStreamTypeOptions:
          $ref: '#/components/schemas/GcsSourceAPI.LogStreamTypeOptions'
        prefixLogTypes:
          type: array
          items:
            $ref: '#/components/schemas/GcsSourceAPI.PrefixLogTypesMapping'
          description: Prefix-based log type mappings for parsing ingested data
        projectId:
          type: string
          description: The GCP project ID. Optional for service_account credentials. Required for WIF.
        subscriptionId:
          type: string
          description: The GCP Pub/Sub subscription ID used to receive GCS bucket notifications
      required:
      - integrationLabel
      - subscriptionId
      - gcsBucket
      - prefixLogTypes
      - logStreamType
      - credentialsType
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: X-API-Key
      in: header
x-provenance:
  method: harvested
  publisher: Panther
  source: https://openapi.gitbook.com/o/-LgddDaIOc7MA4mxoaPa/spec/panther-labs-api.yaml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)