managedidentities.projects.locations.global.domains.set Iam Policy

POST {{baseUrl}}/v1/{{resource}}:setIamPolicy?$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&upload_protocol=<string>&uploadType=<string>

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Request Params

KeyDatatypeRequiredDescription
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy upload protocol for media (e.g. "media", "multipart").

Request Body

{"policy"=>{"bindings"=>[{"bindingId"=>"occaecat anim", "condition"=>{"description"=>"consequat et est amet non", "expression"=>"amet occaecat", "location"=>"nulla labore consectetur exercitation", "title"=>"occaecat dolore ea magna"}, "members"=>["voluptate sed incididunt", "consectetur sit tempor Excepteur"], "role"=>"in qui esse ullamco in"}, {"bindingId"=>"in anim Lorem", "condition"=>{"description"=>"labore reprehenderit sit dolore", "expression"=>"deseru", "location"=>"tempor eiusmod velit i", "title"=>"in fugiat"}, "members"=>["ea", "sed a"], "role"=>"sed culpa adipisic"}], "etag"=>"<string>", "version"=>"<integer>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;bindings&quot;:[{&quot;bindingId&quot;:&quot;in et Duis&quot;,&quot;condition&quot;:{&quot;description&quot;:&quot;voluptate et deserunt velit&quot;,&quot;expression&quot;:&quot;dolore magna eiusmod enim&quot;,&quot;location&quot;:&quot;in elit proident&quot;,&quot;title&quot;:&quot;in nisi et id irure&quot;},&quot;members&quot;:[&quot;sed deserunt la&quot;,&quot;in&quot;],&quot;role&quot;:&quot;aute ex&quot;},{&quot;bindingId&quot;:&quot;in in enim&quot;,&quot;condition&quot;:{&quot;description&quot;:&quot;sit ullamco ut pariatur dolor&quot;,&quot;expression&quot;:&quot;ad et laboris&quot;,&quot;location&quot;:&quot;Excepteur pariatur reprehenderit in&quot;,&quot;title&quot;:&quot;ad eu ut&quot;},&quot;members&quot;:[&quot;enim anim laboris&quot;,&quot;veniam mollit aute&quot;],&quot;role&quot;:&quot;reprehenderit adipisicing magna&quot;}],&quot;etag&quot;:&quot;\u003cstring\u003e&quot;,&quot;version&quot;:&quot;\u003cinteger\u003e&quot;}