Package google.cloud.apim.v1alpha

Index

ApiDiscoveryObservation

Shadow API Discovery Observation Service.

BatchEditTagsApiObservations

rpc BatchEditTagsApiObservations(BatchEditTagsApiObservationsRequest) returns (BatchEditTagsApiObservationsResponse)

BatchEditTagsApiObservations adds or removes Tags for ApiObservations.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on theparent resource:

  • apim.apiObservations.batchEditTags

For more information, see theIAM documentation.

CreateObservationJob

rpc CreateObservationJob(CreateObservationJobRequest) returns (Operation)

CreateObservationJob creates a new ObservationJob but does not have any effecton its own. It is a configuration that can be used in an Observation Job to collect data about existing APIs.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on theparent resource:

  • apim.observationJobs.create

For more information, see theIAM documentation.

CreateObservationSource

rpc CreateObservationSource(CreateObservationSourceRequest) returns (Operation)

CreateObservationSource creates a new ObservationSource but does not affect any deployed infrastructure. It is a configuration that can be used in an Observation Job to collect data about APIs running in user's dataplane.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on theparent resource:

  • apim.observationSources.create

For more information, see theIAM documentation.

DeleteObservationJob

rpc DeleteObservationJob(DeleteObservationJobRequest) returns (Operation)

DeleteObservationJob deletes an ObservationJob. This method will fail if the observation job is currently being used by any ObservationSource, even if not enabled.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on thename resource:

  • apim.observationJobs.delete

For more information, see theIAM documentation.

DeleteObservationSource

rpc DeleteObservationSource(DeleteObservationSourceRequest) returns (Operation)

DeleteObservationSource deletes an observation source. This method will fail if the observation source is currently being used by any ObservationJob, even if not enabled.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on thename resource:

  • apim.observationSources.delete

For more information, see theIAM documentation.

DisableObservationJob

rpc DisableObservationJob(DisableObservationJobRequest) returns (Operation)

Disables the given ObservationJob.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on thename resource:

  • apim.observationJobs.disable

For more information, see theIAM documentation.

EnableObservationJob

rpc EnableObservationJob(EnableObservationJobRequest) returns (Operation)

Enables the given ObservationJob.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on thename resource:

  • apim.observationJobs.enable

For more information, see theIAM documentation.

GetApiObservation

rpc GetApiObservation(GetApiObservationRequest) returns (ApiObservation)

GetApiObservation retrieves a single ApiObservation by name.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on thename resource:

  • apim.apiObservations.get

For more information, see theIAM documentation.

GetApiOperation

rpc GetApiOperation(GetApiOperationRequest) returns (ApiOperation)

GetApiOperation retrieves a single ApiOperation by name.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on thename resource:

  • apim.apiOperations.get

For more information, see theIAM documentation.

GetObservationJob

rpc GetObservationJob(GetObservationJobRequest) returns (ObservationJob)

GetObservationJob retrieves a single ObservationJob by name.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on thename resource:

  • apim.observationJobs.get

For more information, see theIAM documentation.

GetObservationSource

rpc GetObservationSource(GetObservationSourceRequest) returns (ObservationSource)

GetObservationSource retrieves a single ObservationSource by name.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on thename resource:

  • apim.observationSources.get

For more information, see theIAM documentation.

ListApiObservationTags

rpc ListApiObservationTags(ListApiObservationTagsRequest) returns (ListApiObservationTagsResponse)

ListApiObservationTags lists all extant tags on any observation in the given project.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on theparent resource:

  • apim.locations.listApiObservationTags

For more information, see theIAM documentation.

ListApiObservations

rpc ListApiObservations(ListApiObservationsRequest) returns (ListApiObservationsResponse)

ListApiObservations gets all ApiObservations for a given project and location and ObservationJob.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on theparent resource:

  • apim.apiObservations.list

For more information, see theIAM documentation.

ListApiOperations

rpc ListApiOperations(ListApiOperationsRequest) returns (ListApiOperationsResponse)

ListApiOperations gets all ApiOperations for a given project and location and ObservationJob and ApiObservation.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on theparent resource:

  • apim.apiOperations.list

For more information, see theIAM documentation.

ListObservationJobs

rpc ListObservationJobs(ListObservationJobsRequest) returns (ListObservationJobsResponse)

ListObservationJobs gets all ObservationJobs for a given project and location.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on theparent resource:

  • apim.observationJobs.list

For more information, see theIAM documentation.

ListObservationSources

rpc ListObservationSources(ListObservationSourcesRequest) returns (ListObservationSourcesResponse)

ListObservationSources gets all ObservationSources for a given project and location.

Authorization scopes

Requires the following OAuth scope:

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

Requires the followingIAM permission on theparent resource:

  • apim.observationSources.list

For more information, see theIAM documentation.

ApiDiscoveryOperationMetadata

Represents the metadata of the long-running operation.

Fields
create_time

Timestamp

Output only. The time the operation was created.

end_time

Timestamp

Output only. The time the operation finished running.

target

string

Output only. Server-defined resource path for the target of the operation.

verb

string

Output only. Name of the verb executed by the operation.

status_message

string

Output only. Human-readable status of the operation, if any.

requested_cancellation

bool

Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [Operation.error][] value with agoogle.rpc.Status.code of 1, corresponding toCode.CANCELLED.

api_version

string

Output only. API version used to start the operation.

ApiObservation

Message describing ApiObservation object

Fields
name

string

Identifier. Name of resource

style

Style

Style of ApiObservation

server_ips[]

string

The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples:"192.168.1.1","10.0.0.1:80","FE80::0202:B3FF:FE1E:8329".

hostname

string

The hostname of requests processed for this Observation.

source_locations[]

string

Location of the Observation Source, for example "us-central1" or "europe-west1."

tags[]

string

User-defined tags to organize and sort

api_operation_count

int64

The number of observed API Operations.

create_time

Timestamp

Create time stamp

update_time

Timestamp

Update time stamp

last_event_detected_time

Timestamp

Last event detected time stamp

Style

ApiObservation protocol style For MVP, only support REST and unknown protocol

Enums
STYLE_UNSPECIFIEDUnknown style
RESTStyle is Rest API
GRPCStyle is Grpc API
GRAPHQLStyle is GraphQL API

ApiOperation

Message describing ApiOperation object

Fields
name

string

Identifier. Name of resource

first_seen_time

Timestamp

First seen time stamp

last_seen_time

Timestamp

Last seen time stamp

count

int64

The number of occurrences of this API Operation.

Union fieldoperation. ApiOperation protocol styleoperation can be only one of the following:
http_operation

HttpOperation

An HTTP Operation.

BatchEditTagsApiObservationsRequest

Message for requesting batch edit tags for ApiObservations

Fields
parent

string

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

requests[]

EditTagsApiObservationsRequest

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

BatchEditTagsApiObservationsResponse

Message for response to edit Tags for ApiObservations

Fields
api_observations[]

ApiObservation

ApiObservations that were changed

CreateObservationJobRequest

Message for creating an ObservationJob

Fields
parent

string

Required. The parent resource where this ObservationJob will be created. Format: projects/{project}/locations/{location}

observation_job_id

string

Required. The ID to use for the Observation Job. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

observation_job

ObservationJob

Required. The ObservationJob to create.

request_id

string

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

CreateObservationSourceRequest

Message for creating an ObservationSource

Fields
parent

string

Required. Value for parent.

observation_source_id

string

Required. The ID to use for the Observation Source. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

observation_source

ObservationSource

Required. The ObservationSource to create.

request_id

string

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

DataType

Type of data

Enums
DATA_TYPE_UNSPECIFIEDUnspecified data type
BOOLBoolean data type
INTEGERInteger data type
FLOATFloat data type
STRINGString data type
UUIDUUID data type

DeleteObservationJobRequest

Message for deleting an ObservationJob

Fields
name

string

Required. Name of the resource Format: projects/{project}/locations/{location}/observationJobs/{observation_job}

DeleteObservationSourceRequest

Message for deleting an ObservationSource

Fields
name

string

Required. Name of the resource Format: projects/{project}/locations/{location}/observationSources/{source}

DisableObservationJobRequest

Message for disabling an ObservationJob

Fields
name

string

Required. The name of the ObservationJob to disable. Format: projects/{project}/locations/{location}/observationJobs/{job}

EditTagsApiObservationsRequest

Message for requesting edit tags for ApiObservation

Fields
api_observation_id

string

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

tag_actions[]

TagAction

Required. Tag actions to be applied

EnableObservationJobRequest

Message for enabling an ObservationJob

Fields
name

string

Required. The name of the ObservationJob to enable. Format: projects/{project}/locations/{location}/observationJobs/{job}

GclbObservationSource

The GCLB observation source.

Fields
psc_network_configs[]

PscNetworkConfig

Required. The VPC networks where traffic will be observed. All load balancers within this network will be observed. Currently, this is limited to only one network.

PscNetworkConfig

Network information for setting up a PSC connection.

Fields
network

string

Required. The VPC network. Format:projects/{project_id}/global/networks/{network}

subnetwork

string

Required. The subnetwork in the source region that will be used to connect to the Cloud Load Balancers via PSC NEGs. Must belong tonetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{subnet}

GetApiObservationRequest

Message for getting an ApiObservation

Fields
name

string

Required. The name of the ApiObservation to retrieve. Format: projects/{project}/locations/{location}/observationJobs/{observation_job}/apiObservations/{api_observation}

GetApiOperationRequest

Message for getting an ApiOperation

Fields
name

string

Required. The name of the ApiOperation to retrieve. Format: projects/{project}/locations/{location}/observationJobs/{observation_job}/apiObservations/{api_observation}/apiOperation/{api_operation}

GetObservationJobRequest

Message for getting an ObservationJob

Fields
name

string

Required. The name of the ObservationJob to retrieve. Format: projects/{project}/locations/{location}/observationJobs/{job}

GetObservationSourceRequest

Message for getting an ObservationSource

Fields
name

string

Required. The name of the ObservationSource to retrieve. Format: projects/{project}/locations/{location}/observationSources/{source}

HttpOperation

An HTTP-based API Operation, sometimes called a "REST" Operation.

Fields
path

string

Path of the HTTP request.

path_params[]

PathParam

Path params of HttpOperation

query_params

map<string,QueryParam>

Query params of HttpOperation

method

HttpMethod

HTTP Method.

request

HttpRequest

Request metadata.

response

HttpResponse

Response metadata.

Header

An aggregation of HTTP header occurrences.

Fields
name

string

Header name.

count

int64

The number of occurrences of this Header across transactions.

data_type

DataType

Data type of header

HttpMethod

HTTP method

Enums
HTTP_METHOD_UNSPECIFIEDUnspecified HTTP method
GETGET HTTP method
HEADHEAD HTTP method
POSTPOST HTTP method
PUTPUT HTTP method
PATCHPATCH HTTP method
DELETEDELETE HTTP method
TRACETRACE HTTP method
OPTIONSOPTIONS HTTP method
CONNECTCONNECT HTTP method

HttpRequest

An aggregation of HTTP requests.

Fields
headers

map<string,Header>

Unordered map from header name to header metadata

HttpResponse

An aggregation of HTTP responses.

Fields
headers

map<string,Header>

Unordered map from header name to header metadata

response_codes

map<int32, int64>

Map of status code to observed count

PathParam

HTTP Path parameter.

Fields
position

int32

Segment location in the path, 1-indexed

data_type

DataType

Data type of path param

QueryParam

An aggregation of HTTP query parameter occurrences.

Fields
name

string

Name of query param

count

int64

The number of occurrences of this query parameter across transactions.

data_type

DataType

Data type of path param

ListApiObservationTagsRequest

Message for requesting the full list of tags

Fields
parent

string

Required. The parent, which owns this collection of tags. Format: projects/{project}/locations/{location}

page_size

int32

Optional. The maximum number of tags to return. The service may return fewer than this value. If unspecified, at most 10 tags will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

page_token

string

Optional. A page token, received from a previousListApiObservationTags call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided toListApiObservationTags must match the call that provided the page token.

ListApiObservationTagsResponse

Message for response to listing tags

Fields
api_observation_tags[]

string

The tags from the specified project

next_page_token

string

A token, which can be sent aspage_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

ListApiObservationsRequest

Message for requesting list of ApiObservations

Fields
parent

string

Required. The parent, which owns this collection of ApiObservations. Format: projects/{project}/locations/{location}/observationJobs/{observation_job}

page_size

int32

Optional. The maximum number of ApiObservations to return. The service may return fewer than this value. If unspecified, at most 10 ApiObservations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

page_token

string

Optional. A page token, received from a previousListApiObservations call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided toListApiObservations must match the call that provided the page token.

ListApiObservationsResponse

Message for response to listing ApiObservations

Fields
api_observations[]

ApiObservation

The ApiObservation from the specified project and location and ObservationJobs.

next_page_token

string

A token, which can be sent aspage_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

ListApiOperationsRequest

Message for requesting list of ApiOperations

Fields
parent

string

Required. The parent, which owns this collection of ApiOperations. Format: projects/{project}/locations/{location}/observationJobs/{observation_job}/apiObservations/{api_observation}

page_size

int32

Optional. The maximum number of ApiOperations to return. The service may return fewer than this value. If unspecified, at most 10 ApiOperations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

page_token

string

Optional. A page token, received from a previousListApiApiOperations call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided toListApiApiOperations must match the call that provided the page token.

ListApiOperationsResponse

Message for response to listing ApiOperations

Fields
api_operations[]

ApiOperation

The ApiOperations from the specified project and location and ObservationJob and ApiObservation.

next_page_token

string

A token, which can be sent aspage_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

ListObservationJobsRequest

Message for requesting list of ObservationJobs

Fields
parent

string

Required. The parent, which owns this collection of ObservationJobs. Format: projects/{project}/locations/{location}

page_size

int32

Optional. The maximum number of ObservationJobs to return. The service may return fewer than this value. If unspecified, at most 10 ObservationJobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

page_token

string

Optional. A page token, received from a previousListObservationJobs call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided toListObservationJobs must match the call that provided the page token.

ListObservationJobsResponse

Message for response to listing ObservationJobs

Fields
observation_jobs[]

ObservationJob

The ObservationJob from the specified project and location.

next_page_token

string

A token, which can be sent aspage_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

unreachable[]

string

Locations that could not be reached.

ListObservationSourcesRequest

Message for requesting list of ObservationSources

Fields
parent

string

Required. The parent, which owns this collection of ObservationSources. Format: projects/{project}/locations/{location}

page_size

int32

Optional. The maximum number of ObservationSources to return. The service may return fewer than this value. If unspecified, at most 10 ObservationSources will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

page_token

string

Optional. A page token, received from a previousListObservationSources call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided toListObservationSources must match the call that provided the page token.

ListObservationSourcesResponse

Message for response to listing ObservationSources

Fields
observation_sources[]

ObservationSource

The ObservationSource from the specified project and location.

next_page_token

string

A token, which can be sent aspage_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

unreachable[]

string

Locations that could not be reached.

ObservationJob

Message describing ObservationJob object

Fields
name

string

Identifier. name of resource Format: projects/{project}/locations/{location}/observationJobs/{observation_job}

state

State

Output only. The observation job state

sources[]

string

Optional. These should be of the same kind of source.

create_time

Timestamp

Output only. [Output only] Create time stamp

update_time

Timestamp

Output only. [Output only] Update time stamp

State

Observation job state

Enums
STATE_UNSPECIFIEDUnspecified state
CREATINGJob is in the creating state
ENABLINGJob is in the enabling state
ENABLEDJob is enabled
DISABLINGJob is in the disabling state
DISABLEDJob is disabled
DELETINGJob is being deleted
ERRORJob is in an error state

ObservationSource

Observation source configuration types

Fields
name

string

Identifier. name of resource For MVP, each region can only have 1 source.

state

State

Output only. The observation source state

create_time

Timestamp

Output only. [Output only] Create time stamp

update_time

Timestamp

Output only. [Output only] Update time stamp

Union fieldsource. Type of the sourcesource can be only one of the following:
gclb_observation_source

GclbObservationSource

The GCLB observation source

State

Observation source state

Enums
STATE_UNSPECIFIEDUnspecified state
CREATINGSource is in the creating state
CREATEDSource has been created and is ready to use
DELETINGSource is being deleted
ERRORSource is in an error state

OperationMetadata

Represents the metadata of the long-running operation.

Fields
create_time

Timestamp

Output only. The time the operation was created.

end_time

Timestamp

Output only. The time the operation finished running.

target

string

Output only. Server-defined resource path for the target of the operation.

verb

string

Output only. Name of the verb executed by the operation.

status_message

string

Output only. Human-readable status of the operation, if any.

requested_cancellation

bool

Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [Operation.error][] value with agoogle.rpc.Status.code of 1, corresponding toCode.CANCELLED.

api_version

string

Output only. API version used to start the operation.

TagAction

Message for edit tag action

Fields
tag

string

Required. Tag to be added or removed

action

Action

Required. Action to be applied

Action

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

Enums
ACTION_UNSPECIFIEDUnspecified.
ADDAddition of a Tag.
REMOVERemoval of a Tag.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-28 UTC.