Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.compute/alpha.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)
public static Output<GetLicenseResult> getLicense(GetLicenseArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:compute/alpha:getLicense
  arguments:
    # arguments dictionaryThe following arguments are supported:
getLicense Result
The following output properties are available:
- ChargesUse boolFee 
- Deprecated. This field no longer reflects whether a license charges a usage fee.
- CreationTimestamp 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.
- LicenseCode 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.
- ResourceRequirements Pulumi.Google Native. Compute. Alpha. Outputs. License Resource Requirements Response 
- SelfLink string
- Server-defined URL for the resource.
- SelfLink stringWith Id 
- Server-defined URL for this resource with the resource id.
- 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.
- ChargesUse boolFee 
- Deprecated. This field no longer reflects whether a license charges a usage fee.
- CreationTimestamp 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.
- LicenseCode 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.
- ResourceRequirements LicenseResource Requirements Response 
- SelfLink string
- Server-defined URL for the resource.
- SelfLink stringWith Id 
- Server-defined URL for this resource with the resource id.
- 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.
- chargesUse BooleanFee 
- Deprecated. This field no longer reflects whether a license charges a usage fee.
- creationTimestamp 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.
- licenseCode 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.
- resourceRequirements LicenseResource Requirements Response 
- selfLink String
- Server-defined URL for the resource.
- selfLink StringWith Id 
- Server-defined URL for this resource with the resource id.
- 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.
- chargesUse booleanFee 
- Deprecated. This field no longer reflects whether a license charges a usage fee.
- creationTimestamp 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.
- licenseCode 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.
- resourceRequirements LicenseResource Requirements Response 
- selfLink string
- Server-defined URL for the resource.
- selfLink stringWith Id 
- Server-defined URL for this resource with the resource id.
- 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.
- self_link_ strwith_ id 
- Server-defined URL for this resource with the resource id.
- 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.
- chargesUse BooleanFee 
- Deprecated. This field no longer reflects whether a license charges a usage fee.
- creationTimestamp 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.
- licenseCode 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.
- resourceRequirements Property Map
- selfLink String
- Server-defined URL for the resource.
- selfLink StringWith Id 
- Server-defined URL for this resource with the resource id.
- 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   
- MinGuest intCpu Count 
- Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- MinMemory intMb 
- Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- MinGuest intCpu Count 
- Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- MinMemory intMb 
- Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- minGuest IntegerCpu Count 
- Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- minMemory IntegerMb 
- Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- minGuest numberCpu Count 
- Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- minMemory 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.
- minGuest NumberCpu Count 
- Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- minMemory 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.