1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. HssHostProtectionV5
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.HssHostProtectionV5

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for HSS host protection you can get at documentation portal.

    Manages an HSS host protection resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const hostId = config.requireObject("hostId");
    const pro = new opentelekomcloud.HssHostProtectionV5("pro", {
        hostId: hostId,
        version: "hss.version.premium",
        chargingMode: "on_demand",
        isWaitHostAvailable: true,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    host_id = config.require_object("hostId")
    pro = opentelekomcloud.HssHostProtectionV5("pro",
        host_id=host_id,
        version="hss.version.premium",
        charging_mode="on_demand",
        is_wait_host_available=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		hostId := cfg.RequireObject("hostId")
    		_, err := opentelekomcloud.NewHssHostProtectionV5(ctx, "pro", &opentelekomcloud.HssHostProtectionV5Args{
    			HostId:              pulumi.Any(hostId),
    			Version:             pulumi.String("hss.version.premium"),
    			ChargingMode:        pulumi.String("on_demand"),
    			IsWaitHostAvailable: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var hostId = config.RequireObject<dynamic>("hostId");
        var pro = new Opentelekomcloud.HssHostProtectionV5("pro", new()
        {
            HostId = hostId,
            Version = "hss.version.premium",
            ChargingMode = "on_demand",
            IsWaitHostAvailable = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.HssHostProtectionV5;
    import com.pulumi.opentelekomcloud.HssHostProtectionV5Args;
    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 config = ctx.config();
            final var hostId = config.get("hostId");
            var pro = new HssHostProtectionV5("pro", HssHostProtectionV5Args.builder()
                .hostId(hostId)
                .version("hss.version.premium")
                .chargingMode("on_demand")
                .isWaitHostAvailable(true)
                .build());
    
        }
    }
    
    configuration:
      hostId:
        type: dynamic
    resources:
      pro:
        type: opentelekomcloud:HssHostProtectionV5
        properties:
          hostId: ${hostId}
          version: hss.version.premium
          chargingMode: on_demand
          isWaitHostAvailable: true
    

    Create HssHostProtectionV5 Resource

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

    Constructor syntax

    new HssHostProtectionV5(name: string, args: HssHostProtectionV5Args, opts?: CustomResourceOptions);
    @overload
    def HssHostProtectionV5(resource_name: str,
                            args: HssHostProtectionV5Args,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def HssHostProtectionV5(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            charging_mode: Optional[str] = None,
                            host_id: Optional[str] = None,
                            version: Optional[str] = None,
                            hss_host_protection_v5_id: Optional[str] = None,
                            is_wait_host_available: Optional[bool] = None,
                            resource_id: Optional[str] = None,
                            timeouts: Optional[HssHostProtectionV5TimeoutsArgs] = None)
    func NewHssHostProtectionV5(ctx *Context, name string, args HssHostProtectionV5Args, opts ...ResourceOption) (*HssHostProtectionV5, error)
    public HssHostProtectionV5(string name, HssHostProtectionV5Args args, CustomResourceOptions? opts = null)
    public HssHostProtectionV5(String name, HssHostProtectionV5Args args)
    public HssHostProtectionV5(String name, HssHostProtectionV5Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:HssHostProtectionV5
    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 HssHostProtectionV5Args
    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 HssHostProtectionV5Args
    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 HssHostProtectionV5Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HssHostProtectionV5Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HssHostProtectionV5Args
    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 hssHostProtectionV5Resource = new Opentelekomcloud.HssHostProtectionV5("hssHostProtectionV5Resource", new()
    {
        ChargingMode = "string",
        HostId = "string",
        Version = "string",
        HssHostProtectionV5Id = "string",
        IsWaitHostAvailable = false,
        ResourceId = "string",
        Timeouts = new Opentelekomcloud.Inputs.HssHostProtectionV5TimeoutsArgs
        {
            Create = "string",
        },
    });
    
    example, err := opentelekomcloud.NewHssHostProtectionV5(ctx, "hssHostProtectionV5Resource", &opentelekomcloud.HssHostProtectionV5Args{
    	ChargingMode:          pulumi.String("string"),
    	HostId:                pulumi.String("string"),
    	Version:               pulumi.String("string"),
    	HssHostProtectionV5Id: pulumi.String("string"),
    	IsWaitHostAvailable:   pulumi.Bool(false),
    	ResourceId:            pulumi.String("string"),
    	Timeouts: &opentelekomcloud.HssHostProtectionV5TimeoutsArgs{
    		Create: pulumi.String("string"),
    	},
    })
    
    var hssHostProtectionV5Resource = new HssHostProtectionV5("hssHostProtectionV5Resource", HssHostProtectionV5Args.builder()
        .chargingMode("string")
        .hostId("string")
        .version("string")
        .hssHostProtectionV5Id("string")
        .isWaitHostAvailable(false)
        .resourceId("string")
        .timeouts(HssHostProtectionV5TimeoutsArgs.builder()
            .create("string")
            .build())
        .build());
    
    hss_host_protection_v5_resource = opentelekomcloud.HssHostProtectionV5("hssHostProtectionV5Resource",
        charging_mode="string",
        host_id="string",
        version="string",
        hss_host_protection_v5_id="string",
        is_wait_host_available=False,
        resource_id="string",
        timeouts={
            "create": "string",
        })
    
    const hssHostProtectionV5Resource = new opentelekomcloud.HssHostProtectionV5("hssHostProtectionV5Resource", {
        chargingMode: "string",
        hostId: "string",
        version: "string",
        hssHostProtectionV5Id: "string",
        isWaitHostAvailable: false,
        resourceId: "string",
        timeouts: {
            create: "string",
        },
    });
    
    type: opentelekomcloud:HssHostProtectionV5
    properties:
        chargingMode: string
        hostId: string
        hssHostProtectionV5Id: string
        isWaitHostAvailable: false
        resourceId: string
        timeouts:
            create: string
        version: string
    

    HssHostProtectionV5 Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The HssHostProtectionV5 resource accepts the following input properties:

    ChargingMode string
    Specifies the charging mode for host protection. The valid values are as follows:
    HostId string

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    Version string
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    HssHostProtectionV5Id string
    The resource ID same as host_id.
    IsWaitHostAvailable bool

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    ResourceId string
    Specifies Instance ID for host protection.
    Timeouts HssHostProtectionV5Timeouts
    ChargingMode string
    Specifies the charging mode for host protection. The valid values are as follows:
    HostId string

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    Version string
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    HssHostProtectionV5Id string
    The resource ID same as host_id.
    IsWaitHostAvailable bool

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    ResourceId string
    Specifies Instance ID for host protection.
    Timeouts HssHostProtectionV5TimeoutsArgs
    chargingMode String
    Specifies the charging mode for host protection. The valid values are as follows:
    hostId String

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    version String
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    hssHostProtectionV5Id String
    The resource ID same as host_id.
    isWaitHostAvailable Boolean

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    resourceId String
    Specifies Instance ID for host protection.
    timeouts HssHostProtectionV5Timeouts
    chargingMode string
    Specifies the charging mode for host protection. The valid values are as follows:
    hostId string

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    version string
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    hssHostProtectionV5Id string
    The resource ID same as host_id.
    isWaitHostAvailable boolean

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    resourceId string
    Specifies Instance ID for host protection.
    timeouts HssHostProtectionV5Timeouts
    charging_mode str
    Specifies the charging mode for host protection. The valid values are as follows:
    host_id str

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    version str
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    hss_host_protection_v5_id str
    The resource ID same as host_id.
    is_wait_host_available bool

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    resource_id str
    Specifies Instance ID for host protection.
    timeouts HssHostProtectionV5TimeoutsArgs
    chargingMode String
    Specifies the charging mode for host protection. The valid values are as follows:
    hostId String

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    version String
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    hssHostProtectionV5Id String
    The resource ID same as host_id.
    isWaitHostAvailable Boolean

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    resourceId String
    Specifies Instance ID for host protection.
    timeouts Property Map

    Outputs

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

    AgentId string
    The agent ID installed on the host.
    AgentStatus string
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    AssetValue string
    The asset importance. The value can be important, common, or test.
    DetectResult string
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    HostName string
    The host name.
    HostStatus string
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    Id string
    The provider-assigned unique ID for this managed resource.
    OsType string
    The operating system type of the host. The value can be Linux or Windows.
    PrivateIp string
    The private IP address of the host.
    Region string
    The region to which the HSS host protection resource belongs.
    Status string
    The protection status of the host. The value can be closed or opened.
    AgentId string
    The agent ID installed on the host.
    AgentStatus string
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    AssetValue string
    The asset importance. The value can be important, common, or test.
    DetectResult string
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    HostName string
    The host name.
    HostStatus string
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    Id string
    The provider-assigned unique ID for this managed resource.
    OsType string
    The operating system type of the host. The value can be Linux or Windows.
    PrivateIp string
    The private IP address of the host.
    Region string
    The region to which the HSS host protection resource belongs.
    Status string
    The protection status of the host. The value can be closed or opened.
    agentId String
    The agent ID installed on the host.
    agentStatus String
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    assetValue String
    The asset importance. The value can be important, common, or test.
    detectResult String
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    hostName String
    The host name.
    hostStatus String
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    id String
    The provider-assigned unique ID for this managed resource.
    osType String
    The operating system type of the host. The value can be Linux or Windows.
    privateIp String
    The private IP address of the host.
    region String
    The region to which the HSS host protection resource belongs.
    status String
    The protection status of the host. The value can be closed or opened.
    agentId string
    The agent ID installed on the host.
    agentStatus string
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    assetValue string
    The asset importance. The value can be important, common, or test.
    detectResult string
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    hostName string
    The host name.
    hostStatus string
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    id string
    The provider-assigned unique ID for this managed resource.
    osType string
    The operating system type of the host. The value can be Linux or Windows.
    privateIp string
    The private IP address of the host.
    region string
    The region to which the HSS host protection resource belongs.
    status string
    The protection status of the host. The value can be closed or opened.
    agent_id str
    The agent ID installed on the host.
    agent_status str
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    asset_value str
    The asset importance. The value can be important, common, or test.
    detect_result str
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    host_name str
    The host name.
    host_status str
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    id str
    The provider-assigned unique ID for this managed resource.
    os_type str
    The operating system type of the host. The value can be Linux or Windows.
    private_ip str
    The private IP address of the host.
    region str
    The region to which the HSS host protection resource belongs.
    status str
    The protection status of the host. The value can be closed or opened.
    agentId String
    The agent ID installed on the host.
    agentStatus String
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    assetValue String
    The asset importance. The value can be important, common, or test.
    detectResult String
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    hostName String
    The host name.
    hostStatus String
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    id String
    The provider-assigned unique ID for this managed resource.
    osType String
    The operating system type of the host. The value can be Linux or Windows.
    privateIp String
    The private IP address of the host.
    region String
    The region to which the HSS host protection resource belongs.
    status String
    The protection status of the host. The value can be closed or opened.

    Look up Existing HssHostProtectionV5 Resource

    Get an existing HssHostProtectionV5 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?: HssHostProtectionV5State, opts?: CustomResourceOptions): HssHostProtectionV5
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_id: Optional[str] = None,
            agent_status: Optional[str] = None,
            asset_value: Optional[str] = None,
            charging_mode: Optional[str] = None,
            detect_result: Optional[str] = None,
            host_id: Optional[str] = None,
            host_name: Optional[str] = None,
            host_status: Optional[str] = None,
            hss_host_protection_v5_id: Optional[str] = None,
            is_wait_host_available: Optional[bool] = None,
            os_type: Optional[str] = None,
            private_ip: Optional[str] = None,
            region: Optional[str] = None,
            resource_id: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[HssHostProtectionV5TimeoutsArgs] = None,
            version: Optional[str] = None) -> HssHostProtectionV5
    func GetHssHostProtectionV5(ctx *Context, name string, id IDInput, state *HssHostProtectionV5State, opts ...ResourceOption) (*HssHostProtectionV5, error)
    public static HssHostProtectionV5 Get(string name, Input<string> id, HssHostProtectionV5State? state, CustomResourceOptions? opts = null)
    public static HssHostProtectionV5 get(String name, Output<String> id, HssHostProtectionV5State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:HssHostProtectionV5    get:      id: ${id}
    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:
    AgentId string
    The agent ID installed on the host.
    AgentStatus string
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    AssetValue string
    The asset importance. The value can be important, common, or test.
    ChargingMode string
    Specifies the charging mode for host protection. The valid values are as follows:
    DetectResult string
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    HostId string

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    HostName string
    The host name.
    HostStatus string
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    HssHostProtectionV5Id string
    The resource ID same as host_id.
    IsWaitHostAvailable bool

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    OsType string
    The operating system type of the host. The value can be Linux or Windows.
    PrivateIp string
    The private IP address of the host.
    Region string
    The region to which the HSS host protection resource belongs.
    ResourceId string
    Specifies Instance ID for host protection.
    Status string
    The protection status of the host. The value can be closed or opened.
    Timeouts HssHostProtectionV5Timeouts
    Version string
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    AgentId string
    The agent ID installed on the host.
    AgentStatus string
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    AssetValue string
    The asset importance. The value can be important, common, or test.
    ChargingMode string
    Specifies the charging mode for host protection. The valid values are as follows:
    DetectResult string
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    HostId string

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    HostName string
    The host name.
    HostStatus string
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    HssHostProtectionV5Id string
    The resource ID same as host_id.
    IsWaitHostAvailable bool

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    OsType string
    The operating system type of the host. The value can be Linux or Windows.
    PrivateIp string
    The private IP address of the host.
    Region string
    The region to which the HSS host protection resource belongs.
    ResourceId string
    Specifies Instance ID for host protection.
    Status string
    The protection status of the host. The value can be closed or opened.
    Timeouts HssHostProtectionV5TimeoutsArgs
    Version string
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    agentId String
    The agent ID installed on the host.
    agentStatus String
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    assetValue String
    The asset importance. The value can be important, common, or test.
    chargingMode String
    Specifies the charging mode for host protection. The valid values are as follows:
    detectResult String
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    hostId String

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    hostName String
    The host name.
    hostStatus String
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    hssHostProtectionV5Id String
    The resource ID same as host_id.
    isWaitHostAvailable Boolean

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    osType String
    The operating system type of the host. The value can be Linux or Windows.
    privateIp String
    The private IP address of the host.
    region String
    The region to which the HSS host protection resource belongs.
    resourceId String
    Specifies Instance ID for host protection.
    status String
    The protection status of the host. The value can be closed or opened.
    timeouts HssHostProtectionV5Timeouts
    version String
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    agentId string
    The agent ID installed on the host.
    agentStatus string
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    assetValue string
    The asset importance. The value can be important, common, or test.
    chargingMode string
    Specifies the charging mode for host protection. The valid values are as follows:
    detectResult string
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    hostId string

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    hostName string
    The host name.
    hostStatus string
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    hssHostProtectionV5Id string
    The resource ID same as host_id.
    isWaitHostAvailable boolean

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    osType string
    The operating system type of the host. The value can be Linux or Windows.
    privateIp string
    The private IP address of the host.
    region string
    The region to which the HSS host protection resource belongs.
    resourceId string
    Specifies Instance ID for host protection.
    status string
    The protection status of the host. The value can be closed or opened.
    timeouts HssHostProtectionV5Timeouts
    version string
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    agent_id str
    The agent ID installed on the host.
    agent_status str
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    asset_value str
    The asset importance. The value can be important, common, or test.
    charging_mode str
    Specifies the charging mode for host protection. The valid values are as follows:
    detect_result str
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    host_id str

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    host_name str
    The host name.
    host_status str
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    hss_host_protection_v5_id str
    The resource ID same as host_id.
    is_wait_host_available bool

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    os_type str
    The operating system type of the host. The value can be Linux or Windows.
    private_ip str
    The private IP address of the host.
    region str
    The region to which the HSS host protection resource belongs.
    resource_id str
    Specifies Instance ID for host protection.
    status str
    The protection status of the host. The value can be closed or opened.
    timeouts HssHostProtectionV5TimeoutsArgs
    version str
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.
    agentId String
    The agent ID installed on the host.
    agentStatus String
    The agent status of the host. The value can be installed, not_installed, online, offline, install_failed, or installing.
    assetValue String
    The asset importance. The value can be important, common, or test.
    chargingMode String
    Specifies the charging mode for host protection. The valid values are as follows:
    detectResult String
    The security detection result of the host. The value can be undetected, clean, risk, or scanning.
    hostId String

    Specifies the host ID for the host protection. Changing this parameter will create a new resource.

    Before using host protection, it is necessary to ensure that the agent status of the host is online.

    hostName String
    The host name.
    hostStatus String
    The host status. The value can be ACTIVE, SHUTOFF, BUILDING, or ERROR.
    hssHostProtectionV5Id String
    The resource ID same as host_id.
    isWaitHostAvailable Boolean

    Specifies whether to wait for the host agent status to become online. The value can be true or false. Defaults to false.

    If this field is set to true, the program will wait for a maximum of 30 minutes until the host's agent status becomes online, and then enable host protection.

    osType String
    The operating system type of the host. The value can be Linux or Windows.
    privateIp String
    The private IP address of the host.
    region String
    The region to which the HSS host protection resource belongs.
    resourceId String
    Specifies Instance ID for host protection.
    status String
    The protection status of the host. The value can be closed or opened.
    timeouts Property Map
    version String
    Specifies the protection version enabled by the host. The valid values are as follows:

    • hss.version.enterprise: Enterprise version.
    • hss.version.premium: Ultimate version.

    Supporting Types

    HssHostProtectionV5Timeouts, HssHostProtectionV5TimeoutsArgs

    Create string
    Create string
    create String
    create string
    create str
    create String

    Import

    The host protection can be imported using the id, e.g.

    bash

    $ pulumi import opentelekomcloud:index/hssHostProtectionV5:HssHostProtectionV5 pro <id>
    

    Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

    API response, security or some other reason. The missing attributes include: resource_id, is_wait_host_available.

    It is generally recommended running pulumi preview after importing a resource.

    You can then decide if changes should be applied to the resource, or the resource definition

    should be updated to align with the resource. Also, you can ignore changes as below.

    hcl

    resource “opentelekomcloud_hss_host_protection_v5” “pro” {

    lifecycle {

    ignore_changes = [
    
      quota_id, is_wait_host_available,
    
    ]
    

    }

    }

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud