assuredworkloads

Finds orphan ResourceEvents matching the criteria and moves them to the ArchivedResourceEvents table.

post/v1/assuredworkloads:archiveResourceEvents

Request

  • Base URL: https://assuredworkloads.googleapis.com
  • URL: https://assuredworkloads.googleapis.com/v1/assuredworkloads:archiveResourceEvents
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Request body

archiveTimestring google-datetime

Optional. Time to set as ArchiveTime in the archive table. If not provided, the current time is used.

batchSizeinteger

Required. The number of events to process in a single transaction batch.

eventCutoffTimestring google-datetime

Required. Only events with EventTime earlier than this cutoff will be archived.

maxEventsMoveinteger

Required. The maximum total number of events to move in this request.

organizationIdstring int64

Required. The organization ID for which to archive events.

regionstring

Required. The region of the workload(s) whose events should be archived. This is used to filter workloads based on AssurantWorkloadData.region.

Response

Successful response

Changes