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

hsdp.getContainerHostSecurityGroupDetails

Explore with Pulumi AI

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

    Provides details of a specific security group rules.

    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 httpFromCf = hsdp.getContainerHostSecurityGroupDetails({
        name: "http-from-cloud-foundry",
    });
    export const portRanges = httpFromCf.then(httpFromCf => httpFromCf.portRanges);
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    http_from_cf = hsdp.get_container_host_security_group_details(name="http-from-cloud-foundry")
    pulumi.export("portRanges", http_from_cf.port_ranges)
    
    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 {
    		httpFromCf, err := hsdp.GetContainerHostSecurityGroupDetails(ctx, &hsdp.GetContainerHostSecurityGroupDetailsArgs{
    			Name: "http-from-cloud-foundry",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("portRanges", httpFromCf.PortRanges)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var httpFromCf = Hsdp.GetContainerHostSecurityGroupDetails.Invoke(new()
        {
            Name = "http-from-cloud-foundry",
        });
    
        return new Dictionary<string, object?>
        {
            ["portRanges"] = httpFromCf.Apply(getContainerHostSecurityGroupDetailsResult => getContainerHostSecurityGroupDetailsResult.PortRanges),
        };
    });
    
    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.GetContainerHostSecurityGroupDetailsArgs;
    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 httpFromCf = HsdpFunctions.getContainerHostSecurityGroupDetails(GetContainerHostSecurityGroupDetailsArgs.builder()
                .name("http-from-cloud-foundry")
                .build());
    
            ctx.export("portRanges", httpFromCf.applyValue(getContainerHostSecurityGroupDetailsResult -> getContainerHostSecurityGroupDetailsResult.portRanges()));
        }
    }
    
    variables:
      httpFromCf:
        fn::invoke:
          function: hsdp:getContainerHostSecurityGroupDetails
          arguments:
            name: http-from-cloud-foundry
    outputs:
      portRanges: ${httpFromCf.portRanges}
    

    Using getContainerHostSecurityGroupDetails

    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 getContainerHostSecurityGroupDetails(args: GetContainerHostSecurityGroupDetailsArgs, opts?: InvokeOptions): Promise<GetContainerHostSecurityGroupDetailsResult>
    function getContainerHostSecurityGroupDetailsOutput(args: GetContainerHostSecurityGroupDetailsOutputArgs, opts?: InvokeOptions): Output<GetContainerHostSecurityGroupDetailsResult>
    def get_container_host_security_group_details(id: Optional[str] = None,
                                                  name: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetContainerHostSecurityGroupDetailsResult
    def get_container_host_security_group_details_output(id: Optional[pulumi.Input[str]] = None,
                                                  name: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetContainerHostSecurityGroupDetailsResult]
    func GetContainerHostSecurityGroupDetails(ctx *Context, args *GetContainerHostSecurityGroupDetailsArgs, opts ...InvokeOption) (*GetContainerHostSecurityGroupDetailsResult, error)
    func GetContainerHostSecurityGroupDetailsOutput(ctx *Context, args *GetContainerHostSecurityGroupDetailsOutputArgs, opts ...InvokeOption) GetContainerHostSecurityGroupDetailsResultOutput

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

    public static class GetContainerHostSecurityGroupDetails 
    {
        public static Task<GetContainerHostSecurityGroupDetailsResult> InvokeAsync(GetContainerHostSecurityGroupDetailsArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerHostSecurityGroupDetailsResult> Invoke(GetContainerHostSecurityGroupDetailsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerHostSecurityGroupDetailsResult> getContainerHostSecurityGroupDetails(GetContainerHostSecurityGroupDetailsArgs args, InvokeOptions options)
    public static Output<GetContainerHostSecurityGroupDetailsResult> getContainerHostSecurityGroupDetails(GetContainerHostSecurityGroupDetailsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getContainerHostSecurityGroupDetails:getContainerHostSecurityGroupDetails
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Id string
    Name string
    Id string
    name String
    id String
    name string
    id string
    name str
    id str
    name String
    id String

    getContainerHostSecurityGroupDetails Result

    The following output properties are available:

    Id string
    Name string
    PortRanges List<string>
    The port ranges associated to the rule
    Protocols List<string>
    The protocol of the rule
    Sources List<string>
    The source address of the rule
    Id string
    Name string
    PortRanges []string
    The port ranges associated to the rule
    Protocols []string
    The protocol of the rule
    Sources []string
    The source address of the rule
    id String
    name String
    portRanges List<String>
    The port ranges associated to the rule
    protocols List<String>
    The protocol of the rule
    sources List<String>
    The source address of the rule
    id string
    name string
    portRanges string[]
    The port ranges associated to the rule
    protocols string[]
    The protocol of the rule
    sources string[]
    The source address of the rule
    id str
    name str
    port_ranges Sequence[str]
    The port ranges associated to the rule
    protocols Sequence[str]
    The protocol of the rule
    sources Sequence[str]
    The source address of the rule
    id String
    name String
    portRanges List<String>
    The port ranges associated to the rule
    protocols List<String>
    The protocol of the rule
    sources List<String>
    The source address of the rule

    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