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

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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
variables:
  httpFromCf:
    fn::invoke:
      function: hsdp:getContainerHostSecurityGroupDetails
      arguments:
        name: http-from-cloud-foundry
outputs:
  portRanges: ${httpFromCf.portRanges}
Copy

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>
Copy
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]
Copy
func GetContainerHostSecurityGroupDetails(ctx *Context, args *GetContainerHostSecurityGroupDetailsArgs, opts ...InvokeOption) (*GetContainerHostSecurityGroupDetailsResult, error)
func GetContainerHostSecurityGroupDetailsOutput(ctx *Context, args *GetContainerHostSecurityGroupDetailsOutputArgs, opts ...InvokeOption) GetContainerHostSecurityGroupDetailsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetContainerHostSecurityGroupDetailsResult> getContainerHostSecurityGroupDetails(GetContainerHostSecurityGroupDetailsArgs args, InvokeOptions options)
public static Output<GetContainerHostSecurityGroupDetailsResult> getContainerHostSecurityGroupDetails(GetContainerHostSecurityGroupDetailsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: hsdp:index/getContainerHostSecurityGroupDetails:getContainerHostSecurityGroupDetails
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Id string
Name This property is required. string
Id string
name This property is required. String
id String
name This property is required. string
id string
name This property is required. str
id str
name This property is required. 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.