Method: projects.locations.traceScopes.create

Create a new TraceScope.

HTTP request

POST https://observability.googleapis.com/v1/{parent=projects/*/locations/*}/traceScopes

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The full resource name of the location where the trace scope should be created

projects/[PROJECT_ID]/locations/[LOCATION_ID]

For example:

projects/my-project/locations/global

Query parameters

Parameters
traceScopeId

string

Required. A client-assigned identifier for the trace scope.

Request body

The request body contains an instance of TraceScope.

Response body

If successful, the response body contains a newly created instance of TraceScope.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • observability.traceScopes.create

For more information, see the IAM documentation.