1. Packages
  2. Packages
  3. Hsdp Provider
  4. API Docs
  5. getContainerHostSubnetTypes
Viewing docs for hsdp 1.2.2
published on Thursday, Mar 12, 2026 by philips-software
Viewing docs for hsdp 1.2.2
published on Thursday, Mar 12, 2026 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(GetContainerHostSubnetTypesArgs.builder()
                .build());
    
            ctx.export("subnetNames", subnets.names());
        }
    }
    
    variables:
      subnets:
        fn::invoke:
          function: hsdp:getContainerHostSubnetTypes
          arguments: {}
    outputs:
      subnetNames: ${subnets.names}
    
    Example coming soon!
    

    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: pulumi.Input[Optional[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
    data "hsdp_getcontainerhostsubnettypes" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    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 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.
    Viewing docs for hsdp 1.2.2
    published on Thursday, Mar 12, 2026 by philips-software
      Try Pulumi Cloud free. Your team will thank you.