1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/beta
  6. getLicense

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.compute/beta.getLicense

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

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>
Copy
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]
Copy
func LookupLicense(ctx *Context, args *LookupLicenseArgs, opts ...InvokeOption) (*LookupLicenseResult, error)
func LookupLicenseOutput(ctx *Context, args *LookupLicenseOutputArgs, opts ...InvokeOption) LookupLicenseResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetLicenseResult> getLicense(GetLicenseArgs args, InvokeOptions options)
public static Output<GetLicenseResult> getLicense(GetLicenseArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:compute/beta:getLicense
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

License This property is required. string
Project string
License This property is required. string
Project string
license This property is required. String
project String
license This property is required. string
project string
license This property is required. str
project str
license This property is required. String
project String

getLicense Result

The following output properties are available:

ChargesUseFee bool
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] 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.GoogleNative.Compute.Beta.Outputs.LicenseResourceRequirementsResponse
SelfLink 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.
ChargesUseFee bool
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] 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 LicenseResourceRequirementsResponse
SelfLink 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.
chargesUseFee Boolean
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] 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 LicenseResourceRequirementsResponse
selfLink 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.
chargesUseFee boolean
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] 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 LicenseResourceRequirementsResponse
selfLink 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_fee bool
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] 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 LicenseResourceRequirementsResponse
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.
chargesUseFee Boolean
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] 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.
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

MinGuestCpuCount This property is required. int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
MinMemoryMb This property is required. int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
MinGuestCpuCount This property is required. int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
MinMemoryMb This property is required. int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount This property is required. Integer
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb This property is required. Integer
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount This property is required. number
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb This property is required. number
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
min_guest_cpu_count This property is required. int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
min_memory_mb This property is required. int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount This property is required. Number
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb This property is required. Number
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.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi