GCP Pub/Sub APIs and Methods
Google Cloud Platform (GCP) publish/subscribe (Pub/Sub) is a messaging service. Below are the Pub/Sub APIs, methods, and models used internally in Skyhigh CASB architecture to process GCP config audit events.
Class | Request | Models | Methods | Data Retrieved | Result |
---|---|---|---|---|---|
Pubsub.Projects.Topics.List | projectId |
pubsub.model.ListTopicsResponse |
|
Name, kmsKeyName, Labels | Lists Pub/Sub Topics using service account |
Pubsub.Projects.Topics | projectId, topicName |
|
|
Name, kmsKeyName, Labels | Get, Create, Delete Pub/Sub Topics using service account |
Pubsub.Projects | pubSubType, resourceName |
|
|
Bindings, Etag, Version |
To get pub sub policy |
Pubsub.Projects.Subscriptions.List | projectId |
pubsub.model.ListSubscriptionsResponse |
|
AckDeadlineSeconds, expirationPolicy, Labels, MessageRetentionDuration, Name, PushConfig, RetainAckedMessages |
Lists Pub/Sub Subscription using service account |
Pubsub.Projects.Subscriptions | projectId, subscriptionName, topicName, isSubscriptionPersistent |
|
|
AckDeadlineSeconds, ExpirationPolicy, labels, MessageRetentionDuration, Name, PushConfig, RetainAckedMessages |
Create, Get, Delete Pub/Sub Subscription using service account, Project, SubscriptionName and Topic |
Pubsub.Projects.Snapshots.List | projectId |
pubsub.model.ListSnapshotsResponse |
|
ExpireTime, Labels, Name, Topic | Lists Pub/Sub Snapshot using service account and project |
Pubsub.Projects.Snapshots | projectId, snapshotName |
pubsub.model.Snapshots |
|
ExpireTime, Labels, Name, Topic | Get Pub/Sub Snapshot using service account and project and snapshotName |
Pubsub.Projects.Subscriptions.Pull | subscription, pull limit |
|
|
java.util.List<ReceivedMessage> |
Lists pull received message Pub/Sub subscription using service account |
Pubsub.Projects.Subscriptions.Acknowledge | messageAckIds, subscription |
|
|
Id , Kind, Name, Bucket, Generation, TimeCreated, Updated, StorageClass, Size, MediaLink, Metadata, Etag, EventBasedHold, SelfLink, EventType, Action, Digest, Tag, PublishTime | Pull received message of Pub/Sub subscription using service account and project |