1. Packages
  2. Hsdp Provider
  3. API Docs
  4. getContainerHostSubnetTypes
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.getContainerHostSubnetTypes

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    Provides details of a given HSDP IAM user.

    This data source is only available when the cartel_* keys are set in the provider config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const subnets = hsdp.getContainerHostSubnetTypes({});
    export const subnetNames = subnets.then(subnets => subnets.names);
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    subnets = hsdp.get_container_host_subnet_types()
    pulumi.export("subnetNames", subnets.names)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		subnets, err := hsdp.GetContainerHostSubnetTypes(ctx, &hsdp.GetContainerHostSubnetTypesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("subnetNames", subnets.Names)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var subnets = Hsdp.GetContainerHostSubnetTypes.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["subnetNames"] = subnets.Apply(getContainerHostSubnetTypesResult => getContainerHostSubnetTypesResult.Names),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.HsdpFunctions;
    import com.pulumi.hsdp.inputs.GetContainerHostSubnetTypesArgs;
    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 subnets = HsdpFunctions.getContainerHostSubnetTypes();
    
            ctx.export("subnetNames", subnets.applyValue(getContainerHostSubnetTypesResult -> getContainerHostSubnetTypesResult.names()));
        }
    }
    
    variables:
      subnets:
        fn::invoke:
          function: hsdp:getContainerHostSubnetTypes
          arguments: {}
    outputs:
      subnetNames: ${subnets.names}
    

    Using getContainerHostSubnetTypes

    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 getContainerHostSubnetTypes(args: GetContainerHostSubnetTypesArgs, opts?: InvokeOptions): Promise<GetContainerHostSubnetTypesResult>
    function getContainerHostSubnetTypesOutput(args: GetContainerHostSubnetTypesOutputArgs, opts?: InvokeOptions): Output<GetContainerHostSubnetTypesResult>
    def get_container_host_subnet_types(id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetContainerHostSubnetTypesResult
    def get_container_host_subnet_types_output(id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetContainerHostSubnetTypesResult]
    func GetContainerHostSubnetTypes(ctx *Context, args *GetContainerHostSubnetTypesArgs, opts ...InvokeOption) (*GetContainerHostSubnetTypesResult, error)
    func GetContainerHostSubnetTypesOutput(ctx *Context, args *GetContainerHostSubnetTypesOutputArgs, opts ...InvokeOption) GetContainerHostSubnetTypesResultOutput

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

    public static class GetContainerHostSubnetTypes 
    {
        public static Task<GetContainerHostSubnetTypesResult> InvokeAsync(GetContainerHostSubnetTypesArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerHostSubnetTypesResult> Invoke(GetContainerHostSubnetTypesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerHostSubnetTypesResult> getContainerHostSubnetTypes(GetContainerHostSubnetTypesArgs args, InvokeOptions options)
    public static Output<GetContainerHostSubnetTypesResult> getContainerHostSubnetTypes(GetContainerHostSubnetTypesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getContainerHostSubnetTypes:getContainerHostSubnetTypes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getContainerHostSubnetTypes Result

    The following output properties are available:

    Id string
    Ids List<string>
    Map of ids belonging to names
    Names List<string>
    The names of all subnets
    Networks List<string>
    Map of networks belonging to names
    Id string
    Ids []string
    Map of ids belonging to names
    Names []string
    The names of all subnets
    Networks []string
    Map of networks belonging to names
    id String
    ids List<String>
    Map of ids belonging to names
    names List<String>
    The names of all subnets
    networks List<String>
    Map of networks belonging to names
    id string
    ids string[]
    Map of ids belonging to names
    names string[]
    The names of all subnets
    networks string[]
    Map of networks belonging to names
    id str
    ids Sequence[str]
    Map of ids belonging to names
    names Sequence[str]
    The names of all subnets
    networks Sequence[str]
    Map of networks belonging to names
    id String
    ids List<String>
    Map of ids belonging to names
    names List<String>
    The names of all subnets
    networks List<String>
    Map of networks belonging to names

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software