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);
import pulumi
import pulumi_hsdp as hsdp
server = hsdp.get_container_host(name="my-server.dev")
pulumi.export("myServerPrivateIp", server.private_ip)
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
	})
}
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),
    };
});
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()));
    }
}
variables:
  server:
    fn::invoke:
      function: hsdp:getContainerHost
      arguments:
        name: my-server.dev
outputs:
  myServerPrivateIp: ${server.privateIp}
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>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]func LookupContainerHost(ctx *Context, args *LookupContainerHostArgs, opts ...InvokeOption) (*LookupContainerHostResult, error)
func LookupContainerHostOutput(ctx *Context, args *LookupContainerHostOutputArgs, opts ...InvokeOption) LookupContainerHostResultOutput> 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)
}public static CompletableFuture<GetContainerHostResult> getContainerHost(GetContainerHostArgs args, InvokeOptions options)
public static Output<GetContainerHostResult> getContainerHost(GetContainerHostArgs args, InvokeOptions options)
fn::invoke:
  function: hsdp:index/getContainerHost:getContainerHost
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
 - The name of the Container Host instance.
 
- Name string
 - The name of the Container Host instance.
 
- name String
 - The name of the Container Host instance.
 
- name string
 - The name of the Container Host instance.
 
- name str
 - The name of the Container Host instance.
 
- name String
 - The name of the Container Host instance.
 
getContainerHost Result
The following output properties are available:
- Block
Devices List<string> - The provisioned bock devices
 - Id string
 - The list of container host IDs
 - Launch
Time string - Ldap
Groups List<string> - The assigned LDAP groups
 - Name string
 - Owner string
 - The owner of this Container Host
 - Private
Ip string - The private IP / address
 - Protection bool
 - When set to true delete protection is enabled
 - Public
Ip string - The public IP / address
 - Role string
 - Security
Groups List<string> - The assigned security groups
 - State string
 - The state of Container Host instanced
 - Subnet string
 - The subnet where this Container Host is in
 - 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
 
- Block
Devices []string - The provisioned bock devices
 - Id string
 - The list of container host IDs
 - Launch
Time string - Ldap
Groups []string - The assigned LDAP groups
 - Name string
 - Owner string
 - The owner of this Container Host
 - Private
Ip string - The private IP / address
 - Protection bool
 - When set to true delete protection is enabled
 - Public
Ip string - The public IP / address
 - Role string
 - Security
Groups []string - The assigned security groups
 - State string
 - The state of Container Host instanced
 - Subnet string
 - The subnet where this Container Host is in
 - 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
 
- block
Devices List<String> - The provisioned bock devices
 - id String
 - The list of container host IDs
 - launch
Time String - ldap
Groups List<String> - The assigned LDAP groups
 - name String
 - owner String
 - The owner of this Container Host
 - private
Ip String - The private IP / address
 - protection Boolean
 - When set to true delete protection is enabled
 - public
Ip String - The public IP / address
 - role String
 - security
Groups List<String> - The assigned security groups
 - state String
 - The state of Container Host instanced
 - subnet String
 - The subnet where this Container Host is in
 - 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
 
- block
Devices string[] - The provisioned bock devices
 - id string
 - The list of container host IDs
 - launch
Time string - ldap
Groups string[] - The assigned LDAP groups
 - name string
 - owner string
 - The owner of this Container Host
 - private
Ip string - The private IP / address
 - protection boolean
 - When set to true delete protection is enabled
 - public
Ip string - The public IP / address
 - role string
 - security
Groups string[] - The assigned security groups
 - state string
 - The state of Container Host instanced
 - subnet string
 - The subnet where this Container Host is in
 - {[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
 - 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
 
- block
Devices List<String> - The provisioned bock devices
 - id String
 - The list of container host IDs
 - launch
Time String - ldap
Groups List<String> - The assigned LDAP groups
 - name String
 - owner String
 - The owner of this Container Host
 - private
Ip String - The private IP / address
 - protection Boolean
 - When set to true delete protection is enabled
 - public
Ip String - The public IP / address
 - role String
 - security
Groups List<String> - The assigned security groups
 - state String
 - The state of Container Host instanced
 - subnet String
 - The subnet where this Container Host is in
 - 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 
hsdpTerraform Provider. 
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software