Skip to main content
GET
/
v1
/
*
/
{*}
/
iamPolicies:batchGet
cURL
curl --request GET \
  --url 'https://api.example.com/v1/*/{*}/iamPolicies:batchGet'
{
  "policyResults": [
    {
      "project": "<string>",
      "policy": {
        "bindings": [
          {
            "role": "<string>",
            "members": [
              "<string>"
            ],
            "condition": {
              "id": "<string>",
              "constExpr": {
                "nullValue": "NULL_VALUE",
                "boolValue": true,
                "int64Value": "<string>",
                "uint64Value": "<string>",
                "doubleValue": 123,
                "stringValue": "<string>",
                "bytesValue": "<string>",
                "durationValue": "<string>",
                "timestampValue": "2023-11-07T05:31:56Z"
              },
              "identExpr": {
                "name": "<string>"
              },
              "selectExpr": {
                "operand": "<unknown>",
                "field": "<string>",
                "testOnly": true
              },
              "callExpr": {
                "target": "<unknown>",
                "function": "<string>",
                "args": "<array>"
              },
              "listExpr": {
                "elements": "<array>",
                "optionalIndices": [
                  123
                ]
              },
              "structExpr": {
                "messageName": "<string>",
                "entries": [
                  {
                    "id": "<string>",
                    "fieldKey": "<string>",
                    "mapKey": "<unknown>",
                    "value": "<unknown>",
                    "optionalEntry": true
                  }
                ]
              },
              "comprehensionExpr": {
                "iterVar": "<string>",
                "iterVar2": "<string>",
                "iterRange": "<unknown>",
                "accuVar": "<string>",
                "accuInit": "<unknown>",
                "loopCondition": "<unknown>",
                "loopStep": "<unknown>",
                "result": "<unknown>"
              }
            },
            "parsedExpr": {
              "id": "<string>",
              "constExpr": {
                "nullValue": "NULL_VALUE",
                "boolValue": true,
                "int64Value": "<string>",
                "uint64Value": "<string>",
                "doubleValue": 123,
                "stringValue": "<string>",
                "bytesValue": "<string>",
                "durationValue": "<string>",
                "timestampValue": "2023-11-07T05:31:56Z"
              },
              "identExpr": {
                "name": "<string>"
              },
              "selectExpr": {
                "operand": "<unknown>",
                "field": "<string>",
                "testOnly": true
              },
              "callExpr": {
                "target": "<unknown>",
                "function": "<string>",
                "args": "<array>"
              },
              "listExpr": {
                "elements": "<array>",
                "optionalIndices": [
                  123
                ]
              },
              "structExpr": {
                "messageName": "<string>",
                "entries": [
                  {
                    "id": "<string>",
                    "fieldKey": "<string>",
                    "mapKey": "<unknown>",
                    "value": "<unknown>",
                    "optionalEntry": true
                  }
                ]
              },
              "comprehensionExpr": {
                "iterVar": "<string>",
                "iterVar2": "<string>",
                "iterRange": "<unknown>",
                "accuVar": "<string>",
                "accuInit": "<unknown>",
                "loopCondition": "<unknown>",
                "loopStep": "<unknown>",
                "result": "<unknown>"
              }
            }
          }
        ]
      }
    }
  ]
}

Path Parameters

*
string
required

The * id.

Query Parameters

names
string[]

Response

OK

policyResults
object[]

The policy results for each requested project.