1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. Host
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.tls.Host

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage tls host

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Tls.Host("foo", new()
        {
            HostGroupId = "fbea6619-7b0c-40f3-ac7e-45c63e3f676e",
            Ip = "10.180.50.18",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.NewHost(ctx, "foo", &tls.HostArgs{
    			HostGroupId: pulumi.String("fbea6619-7b0c-40f3-ac7e-45c63e3f676e"),
    			Ip:          pulumi.String("10.180.50.18"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.tls.Host;
    import com.pulumi.volcengine.tls.HostArgs;
    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) {
            var foo = new Host("foo", HostArgs.builder()        
                .hostGroupId("fbea6619-7b0c-40f3-ac7e-45c63e3f676e")
                .ip("10.180.50.18")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.tls.Host("foo",
        host_group_id="fbea6619-7b0c-40f3-ac7e-45c63e3f676e",
        ip="10.180.50.18")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.tls.Host("foo", {
        hostGroupId: "fbea6619-7b0c-40f3-ac7e-45c63e3f676e",
        ip: "10.180.50.18",
    });
    
    resources:
      foo:
        type: volcengine:tls:Host
        properties:
          hostGroupId: fbea6619-7b0c-40f3-ac7e-45c63e3f676e
          ip: 10.180.50.18
    

    Create Host Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Host(name: string, args: HostArgs, opts?: CustomResourceOptions);
    @overload
    def Host(resource_name: str,
             args: HostArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Host(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             host_group_id: Optional[str] = None,
             ip: Optional[str] = None)
    func NewHost(ctx *Context, name string, args HostArgs, opts ...ResourceOption) (*Host, error)
    public Host(string name, HostArgs args, CustomResourceOptions? opts = null)
    public Host(String name, HostArgs args)
    public Host(String name, HostArgs args, CustomResourceOptions options)
    
    type: volcengine:tls:Host
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var hostResource = new Volcengine.Tls.Host("hostResource", new()
    {
        HostGroupId = "string",
        Ip = "string",
    });
    
    example, err := tls.NewHost(ctx, "hostResource", &tls.HostArgs{
    	HostGroupId: pulumi.String("string"),
    	Ip:          pulumi.String("string"),
    })
    
    var hostResource = new Host("hostResource", HostArgs.builder()
        .hostGroupId("string")
        .ip("string")
        .build());
    
    host_resource = volcengine.tls.Host("hostResource",
        host_group_id="string",
        ip="string")
    
    const hostResource = new volcengine.tls.Host("hostResource", {
        hostGroupId: "string",
        ip: "string",
    });
    
    type: volcengine:tls:Host
    properties:
        hostGroupId: string
        ip: string
    

    Host Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Host resource accepts the following input properties:

    HostGroupId string
    The id of host group.
    Ip string
    The ip address.
    HostGroupId string
    The id of host group.
    Ip string
    The ip address.
    hostGroupId String
    The id of host group.
    ip String
    The ip address.
    hostGroupId string
    The id of host group.
    ip string
    The ip address.
    host_group_id str
    The id of host group.
    ip str
    The ip address.
    hostGroupId String
    The id of host group.
    ip String
    The ip address.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Host resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Host Resource

    Get an existing Host resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: HostState, opts?: CustomResourceOptions): Host
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            host_group_id: Optional[str] = None,
            ip: Optional[str] = None) -> Host
    func GetHost(ctx *Context, name string, id IDInput, state *HostState, opts ...ResourceOption) (*Host, error)
    public static Host Get(string name, Input<string> id, HostState? state, CustomResourceOptions? opts = null)
    public static Host get(String name, Output<String> id, HostState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    HostGroupId string
    The id of host group.
    Ip string
    The ip address.
    HostGroupId string
    The id of host group.
    Ip string
    The ip address.
    hostGroupId String
    The id of host group.
    ip String
    The ip address.
    hostGroupId string
    The id of host group.
    ip string
    The ip address.
    host_group_id str
    The id of host group.
    ip str
    The ip address.
    hostGroupId String
    The id of host group.
    ip String
    The ip address.

    Import

    Tls Host can be imported using the host_group_id:ip, e.g.

     $ pulumi import volcengine:tls/host:Host default edf051ed-3c46-49:1.1.1.1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine