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

hsdp.getContainerHost

Explore with Pulumi AI

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

Retrieve information from a named Container Host instance

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";

const server = hsdp.getContainerHost({
    name: "my-server.dev",
});
export const myServerPrivateIp = server.then(server => server.privateIp);
Copy
import pulumi
import pulumi_hsdp as hsdp

server = hsdp.get_container_host(name="my-server.dev")
pulumi.export("myServerPrivateIp", server.private_ip)
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 {
		server, err := hsdp.LookupContainerHost(ctx, &hsdp.LookupContainerHostArgs{
			Name: "my-server.dev",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("myServerPrivateIp", server.PrivateIp)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;

return await Deployment.RunAsync(() => 
{
    var server = Hsdp.GetContainerHost.Invoke(new()
    {
        Name = "my-server.dev",
    });

    return new Dictionary<string, object?>
    {
        ["myServerPrivateIp"] = server.Apply(getContainerHostResult => getContainerHostResult.PrivateIp),
    };
});
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.GetContainerHostArgs;
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 server = HsdpFunctions.getContainerHost(GetContainerHostArgs.builder()
            .name("my-server.dev")
            .build());

        ctx.export("myServerPrivateIp", server.applyValue(getContainerHostResult -> getContainerHostResult.privateIp()));
    }
}
Copy
variables:
  server:
    fn::invoke:
      function: hsdp:getContainerHost
      arguments:
        name: my-server.dev
outputs:
  myServerPrivateIp: ${server.privateIp}
Copy

Using getContainerHost

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 getContainerHost(args: GetContainerHostArgs, opts?: InvokeOptions): Promise<GetContainerHostResult>
function getContainerHostOutput(args: GetContainerHostOutputArgs, opts?: InvokeOptions): Output<GetContainerHostResult>
Copy
def get_container_host(name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetContainerHostResult
def get_container_host_output(name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetContainerHostResult]
Copy
func LookupContainerHost(ctx *Context, args *LookupContainerHostArgs, opts ...InvokeOption) (*LookupContainerHostResult, error)
func LookupContainerHostOutput(ctx *Context, args *LookupContainerHostOutputArgs, opts ...InvokeOption) LookupContainerHostResultOutput
Copy

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

public static class GetContainerHost 
{
    public static Task<GetContainerHostResult> InvokeAsync(GetContainerHostArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerHostResult> Invoke(GetContainerHostInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetContainerHostResult> getContainerHost(GetContainerHostArgs args, InvokeOptions options)
public static Output<GetContainerHostResult> getContainerHost(GetContainerHostArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: hsdp:index/getContainerHost:getContainerHost
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the Container Host instance.
Name This property is required. string
The name of the Container Host instance.
name This property is required. String
The name of the Container Host instance.
name This property is required. string
The name of the Container Host instance.
name This property is required. str
The name of the Container Host instance.
name This property is required. String
The name of the Container Host instance.

getContainerHost Result

The following output properties are available:

BlockDevices List<string>
The provisioned bock devices
Id string
The list of container host IDs
LaunchTime string
LdapGroups List<string>
The assigned LDAP groups
Name string
Owner string
The owner of this Container Host
PrivateIp string
The private IP / address
Protection bool
When set to true delete protection is enabled
PublicIp string
The public IP / address
Role string
SecurityGroups List<string>
The assigned security groups
State string
The state of Container Host instanced
Subnet string
The subnet where this Container Host is in
Tags Dictionary<string, string>
The tags associated with this Container Host
Type string
The Container Host type
Vpc string
The VPC this Container Host sits in
Zone string
The network Zone of this Container Host
BlockDevices []string
The provisioned bock devices
Id string
The list of container host IDs
LaunchTime string
LdapGroups []string
The assigned LDAP groups
Name string
Owner string
The owner of this Container Host
PrivateIp string
The private IP / address
Protection bool
When set to true delete protection is enabled
PublicIp string
The public IP / address
Role string
SecurityGroups []string
The assigned security groups
State string
The state of Container Host instanced
Subnet string
The subnet where this Container Host is in
Tags map[string]string
The tags associated with this Container Host
Type string
The Container Host type
Vpc string
The VPC this Container Host sits in
Zone string
The network Zone of this Container Host
blockDevices List<String>
The provisioned bock devices
id String
The list of container host IDs
launchTime String
ldapGroups List<String>
The assigned LDAP groups
name String
owner String
The owner of this Container Host
privateIp String
The private IP / address
protection Boolean
When set to true delete protection is enabled
publicIp String
The public IP / address
role String
securityGroups List<String>
The assigned security groups
state String
The state of Container Host instanced
subnet String
The subnet where this Container Host is in
tags Map<String,String>
The tags associated with this Container Host
type String
The Container Host type
vpc String
The VPC this Container Host sits in
zone String
The network Zone of this Container Host
blockDevices string[]
The provisioned bock devices
id string
The list of container host IDs
launchTime string
ldapGroups string[]
The assigned LDAP groups
name string
owner string
The owner of this Container Host
privateIp string
The private IP / address
protection boolean
When set to true delete protection is enabled
publicIp string
The public IP / address
role string
securityGroups string[]
The assigned security groups
state string
The state of Container Host instanced
subnet string
The subnet where this Container Host is in
tags {[key: string]: string}
The tags associated with this Container Host
type string
The Container Host type
vpc string
The VPC this Container Host sits in
zone string
The network Zone of this Container Host
block_devices Sequence[str]
The provisioned bock devices
id str
The list of container host IDs
launch_time str
ldap_groups Sequence[str]
The assigned LDAP groups
name str
owner str
The owner of this Container Host
private_ip str
The private IP / address
protection bool
When set to true delete protection is enabled
public_ip str
The public IP / address
role str
security_groups Sequence[str]
The assigned security groups
state str
The state of Container Host instanced
subnet str
The subnet where this Container Host is in
tags Mapping[str, str]
The tags associated with this Container Host
type str
The Container Host type
vpc str
The VPC this Container Host sits in
zone str
The network Zone of this Container Host
blockDevices List<String>
The provisioned bock devices
id String
The list of container host IDs
launchTime String
ldapGroups List<String>
The assigned LDAP groups
name String
owner String
The owner of this Container Host
privateIp String
The private IP / address
protection Boolean
When set to true delete protection is enabled
publicIp String
The public IP / address
role String
securityGroups List<String>
The assigned security groups
state String
The state of Container Host instanced
subnet String
The subnet where this Container Host is in
tags Map<String>
The tags associated with this Container Host
type String
The Container Host type
vpc String
The VPC this Container Host sits in
zone String
The network Zone of this Container Host

Package Details

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