title | platform |
---|---|
About the google_compute_license_code resource |
gcp |
A google_compute_license_code
is used to test a Google LicenseCode resource
describe google_compute_license_code(project: 'chef-gcp-inspec', name: 'akl-zone1-1353') do
it { should exist }
end
describe google_compute_license_code(project: 'chef-gcp-inspec', name: 'nonexistent') do
it { should_not exist }
end
Properties that can be accessed from the google_compute_license_code
resource:
-
creation_timestamp
: Creation timestamp in RFC3339 text format.This field is deprecated. -
description
: An optional textual description of the resource. -
id
: The unique identifier for the resource. -
name
: Name of the resource. -
transferable
: If true, the license will remain attached when creating images or snapshots from disks.Otherwise, the license is not transferred. -
state
: Current state of this License Code. -
license_alias
: URL and description aliases of Licenses with the same License Code.-
self_link
: Server-defined, fully qualified URL for this resource. -
description
: Description of this License Code.
-
Ensure the Compute Engine API is enabled for the current project.