A Lien in Google Cloud is a restriction placed on a project or resource to prevent accidental deletion or modification. It ensures that critical resources, such as billing accounts or organizational policies, remain protected until the lien is explicitly removed. Liens are often used by administrators to enforce compliance and safeguard essential infrastructure.

gcp.cloudresourcemanager_lien

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
create_timecoretimestampThe creation time of this Lien.
datadog_display_namecorestring
labelscorearray<string>
namecorestringA system-generated unique identifier for this Lien. Example: `liens/1234abcd`
organization_idcorestring
origincorestringA stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com'
parentcorestringA reference to the resource this Lien is attached to. The server will validate the parent against those for which Liens are supported. Example: `projects/1234`
project_idcorestring
project_numbercorestring
reasoncorestringConcise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key'
region_idcorestring
resource_namecorestring
restrictionscorearray<string>The types of operations which should be blocked as a result of this Lien. Each value should correspond to an IAM permission. The server will validate the permissions against those for which Liens are supported. An empty list is meaningless and will be rejected. Example: ['resourcemanager.projects.delete']
tagscorehstore_csv
zone_idcorestring