Method: policies.set
बताए गए संसाधन पर ऐक्सेस कंट्रोल नीति सेट करता है. किसी भी मौजूदा नीति को बदल देता है.
एचटीटीपी अनुरोध
POST https://sasportal.googleapis.com/v1alpha1/policies:set
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल होता है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में ये स्ट्रक्चर शामिल हैं:
जेएसओएन के काेड में दिखाना |
{
"resource": string,
"policy": {
object (Policy )
},
"disableNotification": boolean
} |
फ़ील्ड |
resource |
string
ज़रूरी है. वह संसाधन जिसके लिए नीति तय की जा रही है. यह नीति किसी भी मौजूदा नीति की जगह ले लेगी.
|
policy |
object (Policy )
ज़रूरी है. resource पर लागू होने वाली नीति.
|
disableNotification |
boolean
ज़रूरी नहीं. ऑनबोर्डिंग सूचना बंद करने के लिए, फ़ील्ड को true के तौर पर सेट करें.
|
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Policy
का एक इंस्टेंस शामिल किया जाता है.
अनुमति पाने के लिंक
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/sasportal
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2022-11-02 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2022-11-02 (UTC) को अपडेट किया गया."],[[["Sets the access control policy on a specified resource, replacing any existing policy."],["The request body requires the resource, the policy to be applied, and optionally allows disabling onboarding notifications."],["A successful response returns the applied policy."],["Utilizes the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization."]]],["The core function is to set an access control policy on a resource via a `POST` HTTP request to `https://sasportal.googleapis.com/v1alpha1/policies:set`. The request body, in JSON format, requires a `resource` string and a `policy` object. Optionally, `disableNotification` can be set to `true`. A successful request returns a `Policy` instance. This process requires the `https://www.googleapis.com/auth/sasportal` OAuth scope. Existing policies are replaced.\n"]]