POST /projects/{project}/global/licenseCodes/{resource}/setIamPolicy
Changed onSets 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 creatingCloud Marketplace images.
Request
- Base URLhttps://compute.googleapis.com/compute/v1
- URLhttps://compute.googleapis.com/compute/v1/projects/{project}/global/licenseCodes/{resource}/setIamPolicy
- Auth
- OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/cloud-platformAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/cloud-platform
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/computeAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/compute
Path parameters
Project ID for this request.
Name or id of the resource for this request.
Request body
Response
Successful response
Changes
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2c
- info
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/computewas removed from the endpoint's security schemeOauth2c
- info