Required. The parent resource name in the form: projects/{project}/locations/{location}. Note: Specify the zone of your VMs as the 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 2024-11-11 UTC."],[[["This process details how to create an OS policy assignment, which also automatically generates the initial revision of the assignment."],["The method uses a long-running operation (LRO) that provides rollout details, and the rollout is cancellable through the LRO."],["The required URL to create an OS policy assignment is provided using the `POST` method with a specific parent path parameter and query parameters like `osPolicyAssignmentId` and optional `requestId`."],["The request body contains the details of the OS policy assignment, and a successful response returns an `Operation` instance, showing the progress of the created task."],["To execute this action, you will require the OAuth scope `https://www.googleapis.com/auth/cloud-platform` and the IAM permission `osconfig.osPolicyAssignments.create` on the parent resource."]]],[]]