Method: policies.test
    
    
      
    
    
      
      संग्रह की मदद से व्यवस्थित रहें
    
    
      
      अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
    
    
    
      
      
      
        यह फ़ंक्शन, उन अनुमतियों को दिखाता है जो कॉलर के पास तय किए गए संसाधन के लिए हैं.
      
      
        
          एचटीटीपी अनुरोध
          POST https://sasportal.googleapis.com/v1alpha1/policies:test
यह यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
        
        
          अनुरोध का मुख्य भाग
          अनुरोध के मुख्य भाग में, इस स्ट्रक्चर का डेटा शामिल होता है:
          
            
              
                
                  | JSON के काेड में दिखाना | 
                
              
              
                
                  {
  "resource": string,
  "permissions": [
    string
  ]
} | 
                
              
            
          
          
            
              
                
                
              
              
                
                  | फ़ील्ड | 
                
              
              
                
                  resource | 
                  
                     string 
                    ज़रूरी है. वह संसाधन जिसके लिए अनुमतियों का अनुरोध किया जा रहा है. 
                   | 
                
                
                  permissions[] | 
                  
                     string 
                    resource के लिए, अनुमतियों का सेट. 
                   | 
                
              
            
          
        
        
          जवाब का मुख्य भाग
          अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
          
            
              policies.test तरीके के लिए जवाब का मैसेज.
            
            
              
                
                  
                    | JSON के काेड में दिखाना | 
                  
                
                
                  
                    {
  "permissions": [
    string
  ]
} | 
                  
                
              
            
            
              
                
                  
                  
                
                
                  
                    | फ़ील्ड | 
                  
                
                
                  
                    permissions[] | 
                    
                       string 
                      अनुमतियों का एक सेट, जो कॉल करने वाले व्यक्ति को दी जाती हैं. 
                     | 
                  
                
              
            
          
        
        
          अनुमति पाने के लिंक
          नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
          
            https://www.googleapis.com/auth/sasportal 
          
        
      
    
  
  
  
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
  आखिरी बार 2025-07-25 (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"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The document outlines the `POST` request to `https://sasportal.googleapis.com/v1alpha1/policies:test` for testing permissions on a specified resource. The request body requires a `resource` string and an array of `permissions` strings. The response body, upon success, returns an array of `permissions` strings, representing the caller's allowed permissions.  This process necessitates authorization with the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]