1. Packages
  2. Opennebula Provider
  3. API Docs
  4. getMarketplace
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

opennebula.getMarketplace

Explore with Pulumi AI

opennebula logo
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

    Use this data source to retrieve the marketplace information from it’s name or tags.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const example = opennebula.getMarketplace({
        name: "My_Marketplace",
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example = opennebula.get_marketplace(name="My_Marketplace")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.LookupMarketplace(ctx, &opennebula.LookupMarketplaceArgs{
    			Name: pulumi.StringRef("My_Marketplace"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Opennebula.GetMarketplace.Invoke(new()
        {
            Name = "My_Marketplace",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.OpennebulaFunctions;
    import com.pulumi.opennebula.inputs.GetMarketplaceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = OpennebulaFunctions.getMarketplace(GetMarketplaceArgs.builder()
                .name("My_Marketplace")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: opennebula:getMarketplace
          arguments:
            name: My_Marketplace
    

    Using getMarketplace

    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 getMarketplace(args: GetMarketplaceArgs, opts?: InvokeOptions): Promise<GetMarketplaceResult>
    function getMarketplaceOutput(args: GetMarketplaceOutputArgs, opts?: InvokeOptions): Output<GetMarketplaceResult>
    def get_marketplace(id: Optional[float] = None,
                        name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetMarketplaceResult
    def get_marketplace_output(id: Optional[pulumi.Input[float]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetMarketplaceResult]
    func LookupMarketplace(ctx *Context, args *LookupMarketplaceArgs, opts ...InvokeOption) (*LookupMarketplaceResult, error)
    func LookupMarketplaceOutput(ctx *Context, args *LookupMarketplaceOutputArgs, opts ...InvokeOption) LookupMarketplaceResultOutput

    > Note: This function is named LookupMarketplace in the Go SDK.

    public static class GetMarketplace 
    {
        public static Task<GetMarketplaceResult> InvokeAsync(GetMarketplaceArgs args, InvokeOptions? opts = null)
        public static Output<GetMarketplaceResult> Invoke(GetMarketplaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMarketplaceResult> getMarketplace(GetMarketplaceArgs args, InvokeOptions options)
    public static Output<GetMarketplaceResult> getMarketplace(GetMarketplaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: opennebula:index/getMarketplace:getMarketplace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id double
    ID of the marketplace.
    Name string
    The OpenNebula marketplace to retrieve information for.
    Tags Dictionary<string, string>
    Tags associated to the marketplace.
    Id float64
    ID of the marketplace.
    Name string
    The OpenNebula marketplace to retrieve information for.
    Tags map[string]string
    Tags associated to the marketplace.
    id Double
    ID of the marketplace.
    name String
    The OpenNebula marketplace to retrieve information for.
    tags Map<String,String>
    Tags associated to the marketplace.
    id number
    ID of the marketplace.
    name string
    The OpenNebula marketplace to retrieve information for.
    tags {[key: string]: string}
    Tags associated to the marketplace.
    id float
    ID of the marketplace.
    name str
    The OpenNebula marketplace to retrieve information for.
    tags Mapping[str, str]
    Tags associated to the marketplace.
    id Number
    ID of the marketplace.
    name String
    The OpenNebula marketplace to retrieve information for.
    tags Map<String>
    Tags associated to the marketplace.

    getMarketplace Result

    The following output properties are available:

    Id double
    ID of the marketplace.
    Name string
    The OpenNebula marketplace name.
    Tags Dictionary<string, string>
    Tags of the marketplace (Key = Value).
    Id float64
    ID of the marketplace.
    Name string
    The OpenNebula marketplace name.
    Tags map[string]string
    Tags of the marketplace (Key = Value).
    id Double
    ID of the marketplace.
    name String
    The OpenNebula marketplace name.
    tags Map<String,String>
    Tags of the marketplace (Key = Value).
    id number
    ID of the marketplace.
    name string
    The OpenNebula marketplace name.
    tags {[key: string]: string}
    Tags of the marketplace (Key = Value).
    id float
    ID of the marketplace.
    name str
    The OpenNebula marketplace name.
    tags Mapping[str, str]
    Tags of the marketplace (Key = Value).
    id Number
    ID of the marketplace.
    name String
    The OpenNebula marketplace name.
    tags Map<String>
    Tags of the marketplace (Key = Value).

    Package Details

    Repository
    opennebula opennebula/terraform-provider-opennebula
    License
    Notes
    This Pulumi package is based on the opennebula Terraform Provider.
    opennebula logo
    opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula