Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.compute/v1.getLicense
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Returns the specified License resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Using getLicense
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLicense(args: GetLicenseArgs, opts?: InvokeOptions): Promise<GetLicenseResult>
function getLicenseOutput(args: GetLicenseOutputArgs, opts?: InvokeOptions): Output<GetLicenseResult>
def get_license(license: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLicenseResult
def get_license_output(license: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLicenseResult]
func LookupLicense(ctx *Context, args *LookupLicenseArgs, opts ...InvokeOption) (*LookupLicenseResult, error)
func LookupLicenseOutput(ctx *Context, args *LookupLicenseOutputArgs, opts ...InvokeOption) LookupLicenseResultOutput
> Note: This function is named LookupLicense
in the Go SDK.
public static class GetLicense
{
public static Task<GetLicenseResult> InvokeAsync(GetLicenseArgs args, InvokeOptions? opts = null)
public static Output<GetLicenseResult> Invoke(GetLicenseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLicenseResult> getLicense(GetLicenseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:compute/v1:getLicense
arguments:
# arguments dictionary
The following arguments are supported:
getLicense Result
The following output properties are available:
- Charges
Use boolFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Description string
- An optional textual description of the resource; provided by the client when the resource is created.
- Kind string
- Type of resource. Always compute#license for licenses.
- License
Code string - The unique code used to attach this license to images, snapshots, and disks.
- Name string
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- Resource
Requirements Pulumi.Google Native. Compute. V1. Outputs. License Resource Requirements Response - Self
Link string - Server-defined URL for the resource.
- Transferable bool
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- Charges
Use boolFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Description string
- An optional textual description of the resource; provided by the client when the resource is created.
- Kind string
- Type of resource. Always compute#license for licenses.
- License
Code string - The unique code used to attach this license to images, snapshots, and disks.
- Name string
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- Resource
Requirements LicenseResource Requirements Response - Self
Link string - Server-defined URL for the resource.
- Transferable bool
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- charges
Use BooleanFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- description String
- An optional textual description of the resource; provided by the client when the resource is created.
- kind String
- Type of resource. Always compute#license for licenses.
- license
Code String - The unique code used to attach this license to images, snapshots, and disks.
- name String
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- resource
Requirements LicenseResource Requirements Response - self
Link String - Server-defined URL for the resource.
- transferable Boolean
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- charges
Use booleanFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- description string
- An optional textual description of the resource; provided by the client when the resource is created.
- kind string
- Type of resource. Always compute#license for licenses.
- license
Code string - The unique code used to attach this license to images, snapshots, and disks.
- name string
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- resource
Requirements LicenseResource Requirements Response - self
Link string - Server-defined URL for the resource.
- transferable boolean
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- charges_
use_ boolfee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- description str
- An optional textual description of the resource; provided by the client when the resource is created.
- kind str
- Type of resource. Always compute#license for licenses.
- license_
code str - The unique code used to attach this license to images, snapshots, and disks.
- name str
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- resource_
requirements LicenseResource Requirements Response - self_
link str - Server-defined URL for the resource.
- transferable bool
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- charges
Use BooleanFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- description String
- An optional textual description of the resource; provided by the client when the resource is created.
- kind String
- Type of resource. Always compute#license for licenses.
- license
Code String - The unique code used to attach this license to images, snapshots, and disks.
- name String
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- resource
Requirements Property Map - self
Link String - Server-defined URL for the resource.
- transferable Boolean
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
Supporting Types
LicenseResourceRequirementsResponse
- Min
Guest intCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Memory intMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Guest intCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Memory intMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest IntegerCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory IntegerMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest numberCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory numberMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min_
guest_ intcpu_ count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min_
memory_ intmb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest NumberCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory NumberMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.