1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/alpha
  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/alpha.getLicense

Explore with Pulumi AI

google-native logo

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>
    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/alpha:getLicense
      arguments:
        # arguments dictionary

    The following arguments are supported:

    License string
    Project string
    License string
    Project string
    license String
    project String
    license string
    project string
    license 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.Alpha.Outputs.LicenseResourceRequirementsResponse
    SelfLink string

    Server-defined URL for the resource.

    SelfLinkWithId string

    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.

    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.

    SelfLinkWithId string

    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.

    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.

    selfLinkWithId String

    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.

    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.

    selfLinkWithId string

    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_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.

    self_link_with_id str

    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.

    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.

    selfLinkWithId String

    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

    MinGuestCpuCount int

    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

    MinMemoryMb int

    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

    MinGuestCpuCount int

    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

    MinMemoryMb int

    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

    minGuestCpuCount Integer

    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

    minMemoryMb Integer

    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

    minGuestCpuCount number

    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

    minMemoryMb number

    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

    min_guest_cpu_count int

    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

    min_memory_mb int

    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

    minGuestCpuCount Number

    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

    minMemoryMb 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-native logo

    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