Method: projects.locations.traceScopes.create

Buat TraceScope baru.

Permintaan HTTP

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

URL menggunakan sintaks gRPC Transcoding.

Parameter jalur

Parameter
parent

string

Wajib. Nama resource lengkap lokasi tempat cakupan rekaman aktivitas harus dibuat

projects/[PROJECT_ID]/locations/[LOCATION_ID]

Contoh:

projects/my-project/locations/global

Parameter kueri

Parameter
traceScopeId

string

Wajib. ID yang ditetapkan klien untuk cakupan rekaman aktivitas.

Isi permintaan

Isi permintaan memuat instance TraceScope.

Isi respons

Jika berhasil, isi respons memuat instance TraceScope yang baru dibuat.

Cakupan otorisasi

Memerlukan cakupan OAuth berikut:

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

Untuk mengetahui informasi selengkapnya, lihat Authentication Overview.

Izin IAM

Memerlukan izin IAM berikut pada resource parent:

  • observability.traceScopes.create

Untuk mengetahui informasi selengkapnya, lihat dokumentasi IAM.