Method: policies.test
แสดงผลสิทธิ์ที่ผู้โทรมีในทรัพยากรที่ระบุ
คำขอ HTTP
POST https://sasportal.googleapis.com/v1alpha1/policies:test
URL ใช้ไวยากรณ์ gRPC Transcoding
เนื้อหาของคำขอ
เนื้อหาของคําขอมีข้อมูลที่มีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"resource": string,
"permissions": [
string
]
} |
ช่อง |
resource |
string
ต้องระบุ ทรัพยากรที่มีการขอสิทธิ์
|
permissions[] |
string
ชุดของสิทธิ์ในการตรวจสอบ resource
|
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ข้อความตอบกลับสําหรับเมธอด policies.test
การแสดง JSON |
{
"permissions": [
string
]
} |
ช่อง |
permissions[] |
string
ชุดสิทธิ์ที่ผู้โทรอนุญาต
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/sasportal
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-11-02 UTC
[null,null,["อัปเดตล่าสุด 2022-11-02 UTC"],[[["Tests permissions that a caller has on a specified resource."],["Takes a resource and a set of permissions as input in the request body."],["Returns a list of allowed permissions in the response body."],["Requires `https://www.googleapis.com/auth/sasportal` authorization scope for access."]]],["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"]]