community / community.google / 1.0.0 / module / gcpubsub_info List Topics/Subscriptions and Messages from Google PubSub. Authors: Tom Melendez (@supertom) <tom@supertom.com>community.google.gcpubsub_info (1.0.0) — module
Install with ansible-galaxy collection install community.google:==1.0.0
collections: - name: community.google version: 1.0.0
List Topics/Subscriptions from Google PubSub. Use the gcpubsub module for topic/subscription management. See U(https://cloud.google.com/pubsub/docs) for an overview.
This module was called C(gcpubsub_facts) before Ansible 2.9. The usage did not change.
- name: List all Topics in a project community.google.gcpubsub_info: view: topics state: list
- name: List all Subscriptions in a project community.google.gcpubsub_info: view: subscriptions state: list
- name: List all Subscriptions for a Topic in a project community.google.gcpubsub_info: view: subscriptions topic: my-topic state: list
view: choices: - topics - subscriptions default: topics description: - Choices are 'topics' or 'subscriptions' type: str state: choices: - list default: list description: - list is the only valid option. required: false type: str topic: description: - GCP pubsub topic name. Only the name, not the full path, is required. required: false type: str project_id: description: - your GCE project ID type: str credentials_file: description: - path to the JSON file associated with the service account email type: str service_account_email: description: - service account email type: str
subscriptions: description: List of subscriptions. returned: When view is set to subscriptions. sample: - mysubscription - mysubscription2 type: list topic: description: Name of topic. Used to filter subscriptions. returned: Always sample: mytopic type: str topics: description: List of topics. returned: When view is set to topics. sample: - mytopic - mytopic2 type: list