Method: liens.create

Create a Lien which applies to the resource denoted by the parent field.

Callers of this method will require permission on the parent resource. For example, applying to projects/1234 requires permission resourcemanager.projects.updateLiens.

NOTE: Some resources may limit the number of Liens which may be applied.

HTTP request

POST https://cloudresourcemanager.googleapis.com/v1/liens

The URL uses gRPC Transcoding syntax.

Request body

The request body contains an instance of Lien .

Response body

If successful, the response body contains a newly created instance of Lien .

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/cloud-platform.read-only
  • https://www.googleapis.com/auth/cloudplatformprojects
  • https://www.googleapis.com/auth/cloudplatformprojects.readonly

For more information, see the Authentication Overview.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年06月11日 UTC.