Google Cloud Pub/Sub Topic

Represents a Pub/Sub topic, which is a named resource to which messages are sent by publishers.

Event-DrivenGoogle CloudMessagingPub-Sub

Properties

Name Type Description
name string The name of the topic in the format projects/{project}/topics/{topic}.
labels object User labels for the topic.
messageStoragePolicy object Policy constraining the set of Google Cloud regions where messages published to the topic may be stored.
kmsKeyName string The resource name of the Cloud KMS CryptoKey used to protect access to messages published on this topic.
schemaSettings object Settings for validating messages published against a schema.
satisfiesPzs boolean Reserved for future use.
messageRetentionDuration string How long to retain unacknowledged messages in the topic's backlog, from the moment a message is published.
View JSON Schema on GitHub

JSON Schema

google-cloud-pubsub-topic-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-cloud-pubsub/refs/heads/main/json-schema/google-cloud-pubsub-topic-schema.json",
  "title": "Google Cloud Pub/Sub Topic",
  "description": "Represents a Pub/Sub topic, which is a named resource to which messages are sent by publishers.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the topic in the format projects/{project}/topics/{topic}."
    },
    "labels": {
      "type": "object",
      "description": "User labels for the topic.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "messageStoragePolicy": {
      "type": "object",
      "description": "Policy constraining the set of Google Cloud regions where messages published to the topic may be stored.",
      "properties": {
        "allowedPersistenceRegions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of IDs of Google Cloud regions where messages published to the topic may be persisted."
        }
      }
    },
    "kmsKeyName": {
      "type": "string",
      "description": "The resource name of the Cloud KMS CryptoKey used to protect access to messages published on this topic."
    },
    "schemaSettings": {
      "type": "object",
      "description": "Settings for validating messages published against a schema.",
      "properties": {
        "schema": {
          "type": "string",
          "description": "The name of the schema that messages published should be validated against."
        },
        "encoding": {
          "type": "string",
          "enum": ["ENCODING_UNSPECIFIED", "JSON", "BINARY"],
          "description": "The encoding of messages validated against the schema."
        },
        "firstRevisionId": {
          "type": "string"
        },
        "lastRevisionId": {
          "type": "string"
        }
      }
    },
    "satisfiesPzs": {
      "type": "boolean",
      "description": "Reserved for future use."
    },
    "messageRetentionDuration": {
      "type": "string",
      "description": "How long to retain unacknowledged messages in the topic's backlog, from the moment a message is published."
    }
  },
  "required": ["name"]
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-cloud-pubsub-topic"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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