Method: policies.get
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी संसाधन के लिए ऐक्सेस कंट्रोल नीति मिलती है. संसाधन मौजूद होने पर और नीति सेट न होने पर खाली नीति दिखाई जाती है.
एचटीटीपी अनुरोध
POST https://sasportal.googleapis.com/v1alpha1/policies:get
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल होता है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में ये स्ट्रक्चर शामिल हैं:
जेएसओएन के काेड में दिखाना |
{
"resource": string
} |
फ़ील्ड |
resource |
string
ज़रूरी है. वह संसाधन जिसके लिए नीति का अनुरोध किया जा रहा है.
|
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में 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) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2022-11-02 (UTC) को अपडेट किया गया."],[[["Retrieves the access control policy for a given resource, returning an empty policy if none is set."],["Utilizes a POST request to the `https://sasportal.googleapis.com/v1alpha1/policies:get` endpoint with a JSON request body specifying the resource."],["The response body will contain the policy details within a `Policy` object if successful."],["Requires the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization."]]],["The core content describes how to retrieve an access control policy for a resource. A `POST` request is sent to `https://sasportal.googleapis.com/v1alpha1/policies:get`. The request body requires a JSON object with a \"resource\" string field, specifying the target resource. A successful response returns a `Policy` object. The process requires the OAuth scope `https://www.googleapis.com/auth/sasportal` for authorization. An empty policy will be returned if no policy is set.\n"]]