New in version 2.3.
- python >= 2.6
- google-auth >= 0.5.0
- google-cloud-pubsub >= 0.22.0
list is the only valid option.
GCP pubsub topic name. Only the name, not the full path, is required.
Choices are 'topics' or 'subscriptions'
## List all Topics in a project gcpubsub_facts: view: topics state: list ## List all Subscriptions in a project gcpubsub_facts: view: subscriptions state: list ## List all Subscriptions for a Topic in a project gcpubsub_facts: view: subscriptions topic: my-topic state: list
Common return values are documented here Return Values, the following are the fields unique to this module:
|topic||Name of topic. Used to filter subscriptions.||Always||str||mytopic|
|topics||List of topics.||When view is set to topics.||list||['mytopic', 'mytopic2']|
|subscriptions||List of subscriptions.||When view is set to subscriptions.||list||['mysubscription', 'mysubscription2']|
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is community maintained without core committer oversight.
For more information on what this means please read Module Support