Stay organized with collections
Save and categorize content based on your preferences.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
Arguments
Parameters
resource
string
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
region
string
Required. Region of the HTTP endpoint. For example, if region is set to us-central1, the endpoint https://us-central1-integrations.googleapis.com will be used. See service endpoints.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Method: googleapis.aiplatform.v1.projects.locations.notebookRuntimeTemplates.setIamPolicy\n\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nSets the access control policy on the specified resource. Replaces any\nexisting policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and\n`PERMISSION_DENIED` errors.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`GoogleIamV1Policy`](https://cloud.google.com/workflows/docs/reference/googleapis/aiplatform/v1/Overview#GoogleIamV1Policy).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.notebookRuntimeTemplates/setIamPolicy). \n\n### YAML\n\n```yaml\n- setIamPolicy:\n call: googleapis.aiplatform.v1.projects.locations.notebookRuntimeTemplates.setIamPolicy\n args:\n resource: ...\n region: ...\n body:\n policy:\n bindings: ...\n etag: ...\n version: ...\n result: setIamPolicyResult\n```\n\n### JSON\n\n```json\n[\n {\n \"setIamPolicy\": {\n \"call\": \"googleapis.aiplatform.v1.projects.locations.notebookRuntimeTemplates.setIamPolicy\",\n \"args\": {\n \"resource\": \"...\",\n \"region\": \"...\",\n \"body\": {\n \"policy\": {\n \"bindings\": \"...\",\n \"etag\": \"...\",\n \"version\": \"...\"\n }\n }\n },\n \"result\": \"setIamPolicyResult\"\n }\n }\n]\n```"]]