Method: projects.locations.observationJobs.apiObservations.batchEditTags

apiObservations.batchEditTags adds or removes Tags for ApiObservations.

HTTP request

POST https://apim.googleapis.com/v1alpha/{parent=projects/*/locations/*/observationJobs/*}/apiObservations:batchEditTags

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource shared by all ApiObservations being edited. Format: projects/{project}/locations/{location}/observationJobs/{observationJob}

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (EditTagsApiObservationsRequest)
    }
  ]
}
Fields
requests[]

object (EditTagsApiObservationsRequest)

Required. The request message specifying the resources to update. A maximum of 1000 apiObservations can be modified in a batch.

Response body

Message for response to edit Tags for ApiObservations

If successful, the response body contains data with the following structure:

JSON representation
{
  "apiObservations": [
    {
      object (ApiObservation)
    }
  ]
}
Fields
apiObservations[]

object (ApiObservation)

ApiObservations that were changed

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

IAM Permissions

Requires the following IAM permission on the parent resource:

  • apim.apiObservations.batchEditTags

For more information, see the IAM documentation.

EditTagsApiObservationsRequest

Message for requesting edit tags for ApiObservation

JSON representation
{
  "apiObservationId": string,
  "tagActions": [
    {
      object (TagAction)
    }
  ]
}
Fields
apiObservationId

string

Required. Identifier of ApiObservation need to be edit tags Format example: "apigee.googleapis.com|us-west1|443"

tagActions[]

object (TagAction)

Required. Tag actions to be applied

TagAction

Message for edit tag action

JSON representation
{
  "tag": string,
  "action": enum (Action)
}
Fields
tag

string

Required. Tag to be added or removed

action

enum (Action)

Required. Action to be applied

Action

The type of action performed on a tag in a TagAction.

Enums
ACTION_UNSPECIFIED Unspecified.
ADD Addition of a Tag.
REMOVE Removal of a Tag.