Required. The parent resource name in the form: projects/{project}/locations/{location}
Query parameters
Parameters
osPolicyAssignmentId
string
Required. The logical name of the OS policy assignment in the project with the following restrictions:
Must contain only lowercase letters, numbers, and hyphens.
Must start with a letter.
Must be between 1-63 characters.
Must end with a number or a letter.
Must be unique within the project.
requestId
string
Optional. A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if a requestId is provided.
[[["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-07-28 UTC."],[[["\u003cp\u003eThis webpage details the process of creating an OS policy assignment, which also generates the first revision of the assignment.\u003c/p\u003e\n"],["\u003cp\u003eThe creation of an OS policy assignment is accomplished using a POST HTTP request to a specified URL with path and query parameters that must follow specific formatting rules.\u003c/p\u003e\n"],["\u003cp\u003eThe operation is a long-running one (LRO) that provides rollout details and can be canceled by canceling the LRO itself.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful creation requires that the user provides an \u003ccode\u003eosPolicyAssignmentId\u003c/code\u003e as a query parameter and has the necessary IAM permission \u003ccode\u003eosconfig.osPolicyAssignments.create\u003c/code\u003e on the parent resource.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the response body contains a new instance of \u003ccode\u003eOperation\u003c/code\u003e, which will be the status of the request.\u003c/p\u003e\n"]]],[],null,[]]