query auditing events
GET/org/:orgId/auditingEvent/query
Query auditing events with advanced filtering, sorting, and pagination using CRUD query language. Supports complex filters, sorting by multiple fields, and pagination.
Request
Path Parameters
Organization ID
Query Parameters
Number of items per page (default: 20, max: 1000)
Page number (default: 1)
LISP-style filter expression (e.g., '(= event_type \
Sort fields: 'field:asc,field2:desc' or '-field,field2' format (e.g., 'creation_time:desc,event_type:asc' or '-creation_time,event_type')
Responses
- 200
- 400
- 500
Paginated list of auditing events
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
data
object[]
aceEventBridgeEvent
object
detail
object
"AWS" or "Sandbox"
engagementInvitation
object
Engagement invitation-related events
opportunity
object
Opportunity-related events
"aws.partnercentral-selling"
alibabaMarketplaceEvent
object
Possible values: [createInstance
, renewInstance
, upgradeInstance
, expiredInstance
, releaseInstance
, verify
, createIdaas
, PushMeteringData
]
The Alibaba UID of the buyer's Alibaba Account.
Used as the Instance ID, and as the external ID for the Suger Entitlement.
Suger organization ID of this event. Populated by Suger Service.
When the event was received by the Suger.
SPI security token.
If true, the event is for a trial.
awsMarketplaceEvent
object
Possible values: [true
, false
]
Populated by Suger Service.
awsMarketplaceEventBridgeEvent
object
The seller/ISV AWS Account Id.
detail
object
manufacturer
object
The seller/ISV's AWS Account Id.
offer
object
product
object
sellerOfRecord
object
For private offer created by a channel partner, this is the channel partner's AWS Account Id. For private offer created by a seller/ISV, this is the seller/ISV's AWS Account Id.
"aws.marketplacecatalog"
azureMarketplaceEvent
object
Possible values: [ChangePlan
, ChangeQuantity
, Renew
, Suspend
, Unsubscribe
, Reinstate
]
The Operation Id.
Possible values: [Azure
, Partner
]
Possible values: [Succeeded
, InProgress
]
subscription
object
Possible values: [Read
, Update
, Delete
]
beneficiary
object
Azure Billing Account ID
Email address
Azure License Type
ID of the user, used as External ID of suger IdentityBuyer.
Azure MPO seller ID
The Azure Active Directory Tenant ID of the buyer or the reseller partner ID (the same as TenantId).
purchaser
object
Azure Billing Account ID
Email address
Azure License Type
ID of the user, used as External ID of suger IdentityBuyer.
Azure MPO seller ID
The Azure Active Directory Tenant ID of the buyer or the reseller partner ID (the same as TenantId).
Possible values: [NotStarted
, PendingFulfillmentStart
, Subscribed
, Suspended
, Unsubscribed
]
Possible values: [None
, Csp
]
Possible values: [None
, DryRun
]
term
object
Populated by Suger Service.
When the event is received and audited.
Possible values: [AWS_MARKETPLACE
, AWS_CHINA_MARKETPLACE
, AWS_EVENT_BRIDGE
, AWS_ACE_EVENT_BRIDGE
, AZURE_MARKETPLACE
, GCP_MARKETPLACE
, GCP_MARKETPLACE_CHROME
, ALIBABA_MARKETPLACE
]
gcpMarketplaceEvent
object
account
object
approvals
object[]
The approvals for this account, that are permitted or have been completed.
An explanation for the state of the approval.
Possible values: [STATE_UNSPECIFIED
, PENDING
, APPROVED
, REJECTED
]
RFC3339 UTC timestamp
The buyer's GCP billing account ID if it's a company account.
RFC3339 UTC timestamp
GCP Marketplace User Account ID.
The resource name of the account, in format of providers/{provider_id}/accounts/{account_id}.
The parent account ID of the BillingAccountId if the buyer is from a reseller in GCP Marketplace. It is the GCP billing account ID of the reseller in GCP Marketplace.
The identifier of the service provider (SaaS Seller) that this account was created against.
Possible values: [ACCOUNT_STATE_UNSPECIFIED
, ACCOUNT_ACTIVE
]
The state of the account. An account might not be able to make a purchase if the billing account is suspended.
RFC3339 UTC timestamp
userInfo
object
a list of unique order IDs for each entitlement ID that indicates the different offers on the same product. This field is available only if multiple orders of the same product is enabled
An array of strings representing the user's roles. Right now, it can be either: ** account_admin, which indicates that the user is a Billing Account Administrator of the billing account that purchased the product, or ** project_editor, which indicates that the user is a Project Editor, but not a Billing Administrator, of the project under that billing account.
The user's obfuscated GAIA ID, which can be used to initiate Open ID Connect.
entitlement
object
The resource name of the account that this entitlement is based on, if any, in format ""providers/{provider_id}/accounts/{account_id}"
consumers
object[]
The resources using this entitlement, if applicable.
The project name with format projects/
.
Entitlement Id generated by GCP Marketplace. For Marketplace pub/sub event.
The custom properties that were collected from the user to create this entitlement.
Provider-supplied message that is displayed to the end user. Currently this is used to communicate progress and ETA for provisioning. This field can be updated only when a user is waiting for an action from the provider, i.e. entitlement state is EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED or EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL. This field is cleared automatically when the entitlement state changes.
The resource name of the entitlement. Entitlement names have the form of
providers/{provider_id}/entitlements/{entitlement_id}
.
in ISO 8601 duration format, such as "P2Y3M". For Marketplace pub/sub event.
Output only. The end time of the new offer. Field is empty if the pending plan change is not moving to an offer. If the offer was created with a term instead of a specified end date, this field is empty.
Output only. The start time of the new offer. Field is empty if the pending plan change is not moving to an offer.
The name of the offer the entitlement is switching to upon a pending plan change. Only exists if the pending plan change is moving to an offer. Format: 'projects/{project}/services/{service}/privateOffers/{offer-id}' OR 'projects/{project}/services/{service}/standardOffers/{offer-id}', depending on whether the offer is private or public.
The offer duration of the new offer in ISO 8601 duration format. Field is empty if the pending plan change is not moving to an offer since the entitlement is not pending, only the plan change is pending.
The identifier of the pending new plan. Required if the product has plans and the entitlement has a pending plan change.
When the buyer changes plan, For Marketplace pub/sub event.
The name of the offer that was procured. Field is empty if order was not made using an offer. Format: 'projects/{project}/services/{service}/privateOffers/{offer-id}' OR 'projects/{project}/services/{service}/standardOffers/{offer-id}', depending on whether the offer is private or public.
The offer duration of the current offer in ISO 8601 duration format. Field is empty if entitlement was not made using an offer, such as "P1Y", "P2M"
When the offer is effective.
Output only. End time for the Offer association corresponding to this entitlement. The field is only populated if the entitlement is currently associated with an Offer.
The identifier of the plan that was procured. Required if the product has plans.
The identifier of the entity that was purchased. This may actually represent a product, quote, or offer. For Private offer, "projects/project-id/services/product-id.endpoints.partner-id.cloud.goog/privateOffers/private-offer-id"
The identifier of the product that was procured.
The ID of the service provider under Cloud Commerce platform that this entitlement was created against.
The identifier of the quote that was used to procure, such as the private offer Id. Empty if the order is not purchased using a quote.
Possible values: [ENTITLEMENT_STATE_UNSPECIFIED
, ENTITLEMENT_ACTIVATION_REQUESTED
, ENTITLEMENT_ACTIVE
, ENTITLEMENT_PENDING_CANCELLATION
, ENTITLEMENT_CANCELLED
, ENTITLEMENT_PENDING_PLAN_CHANGE
, ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL
, ENTITLEMENT_SUSPENDED
]
Enums of the Entitlement State. https://cloud.google.com/marketplace/docs/partners/commerce-procurement-api/reference/rest/v1/providers.entitlements#EntitlementState
The End time for the subscription corresponding to this entitlement.
The last update timestamp. It is the endTime for the cancelled entitlement.
The consumerId to use when reporting usage through the Service Control API. See the consumerId field at Reporting Metrics (https://cloud.google.com/service-control/reporting-metrics) for more details. This field is present only if the product has usage-based billing configured.
Possible values: [ACCOUNT_ACTIVE
, ACCOUNT_DELETED
, ENTITLEMENT_CREATION_REQUESTED
, ENTITLEMENT_ACTIVE
, ENTITLEMENT_PLAN_CHANGE_REQUESTED
, ENTITLEMENT_PLAN_CHANGED
, ENTITLEMENT_PLAN_CHANGE_CANCELLED
, ENTITLEMENT_PENDING_CANCELLATION
, ENTITLEMENT_CANCELLATION_REVERTED
, ENTITLEMENT_CANCELLED
, ENTITLEMENT_CANCELLING
, ENTITLEMENT_RENEWED
, ENTITLEMENT_OFFER_ENDED
, ENTITLEMENT_OFFER_ACCEPTED
, ENTITLEMENT_DELETED
]
GCP Partner ID of the SaaS Seller.
The Publish Time of the event.
Populated by Suger Service.
when the event is updated.
Nullable, applicable when eventType is other types.
Possible values: [AUDITED
, PENDING
, FAILED
, DONE
]
{
"data": [
{
"aceEventBridgeEvent": {
"account": "string",
"detail": {
"catalog": "string",
"engagementInvitation": {
"arn": "string"
},
"opportunity": {
"identifier": "string",
"url": "string"
},
"schemaVersion": "string"
},
"detail-type": "string",
"id": "string",
"region": "string",
"resources": [
"string"
],
"source": "string",
"time": "2024-07-29T15:51:28.071Z",
"version": "string"
},
"alibabaMarketplaceEvent": {
"action": "createInstance",
"aliUid": "string",
"expiredOn": "2024-07-29T15:51:28.071Z",
"instanceId": "string",
"isRefund": true,
"orderBizId": "string",
"orderId": "string",
"productCode": "string",
"skuId": "string",
"sugerOrganizationId": "string",
"template": "string",
"timeStamp": "2024-07-29T15:51:28.071Z",
"token": "string",
"trial": true
},
"awsMarketplaceEvent": {
"action": "string",
"customer-identifier": "string",
"id": "string",
"isFreeTrialTermPresent": "true",
"offer-identifier": "string",
"product-code": "string",
"sugerOrganizationId": "string"
},
"awsMarketplaceEventBridgeEvent": {
"account": "string",
"detail": {
"catalog": "string",
"eventCategory": "string",
"eventID": "string",
"eventName": "string",
"eventSource": "string",
"eventType": "string",
"eventVersion": "string",
"managementEvent": true,
"manufacturer": {
"accountId": "string",
"name": "string"
},
"offer": {
"arn": "string",
"expirationDate": "2024-07-29T15:51:28.071Z",
"id": "string",
"name": "string"
},
"product": {
"arn": "string",
"id": "string",
"title": "string"
},
"requestID": "string",
"requestParameters": {},
"responseElements": {},
"sellerOfRecord": {
"accountId": "string",
"name": "string"
},
"targetedBuyerAccountIds": [
"string"
]
},
"detail-type": "string",
"id": "string",
"region": "string",
"resources": [
"string"
],
"source": "string",
"time": "2024-07-29T15:51:28.071Z",
"version": "string"
},
"azureMarketplaceEvent": {
"action": "ChangePlan",
"activityId": "string",
"id": "string",
"offerId": "string",
"operationRequestSource": "Azure",
"planId": "string",
"publisherId": "string",
"purchaseToken": "string",
"quantity": 0,
"status": "Succeeded",
"subscription": {
"allowedCustomerOperations": [
"Read"
],
"autoRenew": true,
"beneficiary": {
"billingAccountId": "string",
"customerId": "string",
"emailId": "string",
"firstName": "string",
"lastName": "string",
"licenseType": "string",
"objectId": "string",
"puid": "string",
"sellerId": "string",
"tenantId": "string"
},
"created": "2024-07-29T15:51:28.071Z",
"fulfillmentId": "string",
"id": "string",
"isFreeTrial": true,
"isTest": true,
"lastModified": "string",
"name": "string",
"offerId": "string",
"planId": "string",
"publisherId": "string",
"purchaser": {
"billingAccountId": "string",
"customerId": "string",
"emailId": "string",
"firstName": "string",
"lastName": "string",
"licenseType": "string",
"objectId": "string",
"puid": "string",
"sellerId": "string",
"tenantId": "string"
},
"quantity": 0,
"saasSubscriptionStatus": "NotStarted",
"sandboxType": "None",
"sessionId": "string",
"sessionMode": "None",
"storeFront": "string",
"term": {
"chargeDuration": "string",
"endDate": "2024-07-29T15:51:28.071Z",
"startDate": "2024-07-29T15:51:28.071Z",
"termUnit": "string"
}
},
"subscriptionId": "string",
"sugerOrganizationId": "string",
"timeStamp": "2024-07-29T15:51:28.071Z"
},
"creationTime": "2024-07-29T15:51:28.071Z",
"eventType": "AWS_MARKETPLACE",
"gcpMarketplaceEvent": {
"account": {
"approvals": [
{
"name": "string",
"reason": "string",
"state": "STATE_UNSPECIFIED",
"updateTime": "string"
}
],
"billingAccountId": "string",
"createTime": "2024-07-29T15:51:28.071Z",
"id": "string",
"inputProperties": [
0
],
"name": "string",
"parentBillingAccountId": "string",
"provider": "string",
"state": "ACCOUNT_STATE_UNSPECIFIED",
"updateTime": "2024-07-29T15:51:28.071Z",
"userInfo": {
"orders": [
"string"
],
"roles": [
"string"
],
"user_identity": "string"
}
},
"entitlement": {
"account": "string",
"consumers": [
{
"project": "string"
}
],
"createTime": "2024-07-29T15:51:28.071Z",
"id": "string",
"inputProperties": [
0
],
"messageToUser": "string",
"name": "string",
"newOfferDuration": "string",
"newOfferEndTime": "string",
"newOfferStartTime": "string",
"newPendingOffer": "string",
"newPendingOfferDuration": "string",
"newPendingPlan": "string",
"newPlan": "string",
"offer": "string",
"offerDuration": "string",
"offerEffectiveTime": "2024-07-29T15:51:28.071Z",
"offerEndTime": "2024-07-29T15:51:28.071Z",
"plan": "string",
"product": "string",
"productExternalName": "string",
"provider": "string",
"quoteExternalName": "string",
"state": "ENTITLEMENT_STATE_UNSPECIFIED",
"subscriptionEndTime": "2024-07-29T15:51:28.071Z",
"updateTime": "2024-07-29T15:51:28.071Z",
"usageReportingId": "string"
},
"eventId": "string",
"eventType": "ACCOUNT_ACTIVE",
"providerId": "string",
"publishTime": "2024-07-29T15:51:28.071Z",
"sugerOrganizationId": "string"
},
"id": "string",
"lastUpdateTime": "2024-07-29T15:51:28.071Z",
"organizationID": "string",
"status": "AUDITED"
}
],
"page_number": 0,
"page_size": 0,
"total_count": 0
}
Bad request error
- application/json
- Schema
Schema
string
Internal server error
- application/json
- Schema
Schema
string