- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- EditTagsApiObservationsRequest
- TagAction
- Action
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 |
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 ( |
Fields | |
---|---|
requests[] |
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 ( |
Fields | |
---|---|
apiObservations[] |
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 ( |
Fields | |
---|---|
apiObservationId |
Required. Identifier of ApiObservation need to be edit tags Format example: "apigee.googleapis.com|us-west1|443" |
tagActions[] |
Required. Tag actions to be applied |
TagAction
Message for edit tag action
JSON representation |
---|
{
"tag": string,
"action": enum ( |
Fields | |
---|---|
tag |
Required. Tag to be added or removed |
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. |