Method: enterprises.policies.patch
Memperbarui atau membuat kebijakan.
Permintaan HTTP
PATCH https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Nama kebijakan dalam bentuk enterprises/{enterpriseId}/policies/{policyId} .
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Mask kolom yang menunjukkan kolom yang akan diperbarui. Jika tidak ditetapkan, semua kolom yang dapat diubah akan diubah. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance Policy
.
Isi respons
Jika berhasil, isi respons memuat instance Policy
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/androidmanagement
Untuk mengetahui informasi selengkapnya, lihat OAuth 2.0 Overview.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-02-19 UTC.
[null,null,["Terakhir diperbarui pada 2025-02-19 UTC."],[[["This operation updates or creates an enterprise policy using a PATCH request to the specified URL."],["The request must include path and query parameters to identify the target policy and specify fields to update."],["Both request and response bodies utilize the `Policy` object for data transfer."],["Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope."]]],["This describes how to update or create a policy using a PATCH HTTP request to a specific URL. The URL path, including the enterprise and policy IDs, is defined by `name`. Optional `updateMask` query parameter specifies which policy fields to modify. The request and response bodies both utilize the `Policy` data structure. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. The provided document details the URL structure, required parameters, and body content.\n"]]