- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
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 |
Required. The full resource name of the location where the trace scope should be created
For example:
|
Query parameters
Parameters | |
---|---|
traceScopeId |
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.