Sets the access control policy on the specified resource. Replaces any existing policy. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Arguments
project
string
Required. Project ID for this request.
resource
string
Required. Name or id of the resource for this request.
body
object ( GlobalSetPolicyRequest
)
Required.
Raised exceptions
ConnectionError
HttpError
TimeoutError
TypeError
ValueError
Response
If successful, the response contains an instance of Policy
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation .
YAML
- setIamPolicy : call : googleapis.compute.beta.licenses.setIamPolicy args : project : ... resource : ... body : bindings : ... etag : ... policy : auditConfigs : ... bindings : ... etag : ... rules : ... version : ... result : setIamPolicyResult
JSON
[ { "setIamPolicy" : { "call" : "googleapis.compute.beta.licenses.setIamPolicy" , "args" : { "project" : "..." , "resource" : "..." , "body" : { "bindings" : "..." , "etag" : "..." , "policy" : { "auditConfigs" : "..." , "bindings" : "..." , "etag" : "..." , "rules" : "..." , "version" : "..." } } }, "result" : "setIamPolicyResult" } } ]

