opentelekomcloud.HssHostProtectionV5
Explore with Pulumi AI
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:
- Charging
Mode string - Specifies the charging mode for host protection. The valid values are as follows:
- Host
Id 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.
- Hss
Host stringProtection V5Id - The resource ID same as
host_id
. - Is
Wait boolHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- Resource
Id string - Specifies Instance ID for host protection.
- Timeouts
Hss
Host Protection V5Timeouts
- Charging
Mode string - Specifies the charging mode for host protection. The valid values are as follows:
- Host
Id 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.
- Hss
Host stringProtection V5Id - The resource ID same as
host_id
. - Is
Wait boolHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- Resource
Id string - Specifies Instance ID for host protection.
- Timeouts
Hss
Host Protection V5Timeouts Args
- charging
Mode String - Specifies the charging mode for host protection. The valid values are as follows:
- host
Id 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.
- hss
Host StringProtection V5Id - The resource ID same as
host_id
. - is
Wait BooleanHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- resource
Id String - Specifies Instance ID for host protection.
- timeouts
Hss
Host Protection V5Timeouts
- charging
Mode string - Specifies the charging mode for host protection. The valid values are as follows:
- host
Id 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.
- hss
Host stringProtection V5Id - The resource ID same as
host_id
. - is
Wait booleanHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- resource
Id string - Specifies Instance ID for host protection.
- timeouts
Hss
Host Protection V5Timeouts
- 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_ strprotection_ v5_ id - The resource ID same as
host_id
. - is_
wait_ boolhost_ available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- resource_
id str - Specifies Instance ID for host protection.
- timeouts
Hss
Host Protection V5Timeouts Args
- charging
Mode String - Specifies the charging mode for host protection. The valid values are as follows:
- host
Id 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.
- hss
Host StringProtection V5Id - The resource ID same as
host_id
. - is
Wait BooleanHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- resource
Id 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:
- Agent
Id string - The agent ID installed on the host.
- Agent
Status string - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - Asset
Value string - The asset importance. The value can be
important
,common
, ortest
. - Detect
Result string - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - Host
Name string - The host name.
- Host
Status string - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - Id string
- The provider-assigned unique ID for this managed resource.
- Os
Type string - The operating system type of the host. The value can be
Linux
orWindows
. - Private
Ip 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
oropened
.
- Agent
Id string - The agent ID installed on the host.
- Agent
Status string - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - Asset
Value string - The asset importance. The value can be
important
,common
, ortest
. - Detect
Result string - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - Host
Name string - The host name.
- Host
Status string - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - Id string
- The provider-assigned unique ID for this managed resource.
- Os
Type string - The operating system type of the host. The value can be
Linux
orWindows
. - Private
Ip 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
oropened
.
- agent
Id String - The agent ID installed on the host.
- agent
Status String - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - asset
Value String - The asset importance. The value can be
important
,common
, ortest
. - detect
Result String - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - host
Name String - The host name.
- host
Status String - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - id String
- The provider-assigned unique ID for this managed resource.
- os
Type String - The operating system type of the host. The value can be
Linux
orWindows
. - private
Ip 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
oropened
.
- agent
Id string - The agent ID installed on the host.
- agent
Status string - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - asset
Value string - The asset importance. The value can be
important
,common
, ortest
. - detect
Result string - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - host
Name string - The host name.
- host
Status string - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - id string
- The provider-assigned unique ID for this managed resource.
- os
Type string - The operating system type of the host. The value can be
Linux
orWindows
. - private
Ip 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
oropened
.
- 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
, orinstalling
. - asset_
value str - The asset importance. The value can be
important
,common
, ortest
. - detect_
result str - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - host_
name str - The host name.
- host_
status str - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - 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
orWindows
. - 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
oropened
.
- agent
Id String - The agent ID installed on the host.
- agent
Status String - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - asset
Value String - The asset importance. The value can be
important
,common
, ortest
. - detect
Result String - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - host
Name String - The host name.
- host
Status String - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - id String
- The provider-assigned unique ID for this managed resource.
- os
Type String - The operating system type of the host. The value can be
Linux
orWindows
. - private
Ip 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
oropened
.
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.
- Agent
Id string - The agent ID installed on the host.
- Agent
Status string - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - Asset
Value string - The asset importance. The value can be
important
,common
, ortest
. - Charging
Mode string - Specifies the charging mode for host protection. The valid values are as follows:
- Detect
Result string - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - Host
Id 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
.- Host
Name string - The host name.
- Host
Status string - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - Hss
Host stringProtection V5Id - The resource ID same as
host_id
. - Is
Wait boolHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- Os
Type string - The operating system type of the host. The value can be
Linux
orWindows
. - Private
Ip string - The private IP address of the host.
- Region string
- The region to which the HSS host protection resource belongs.
- Resource
Id string - Specifies Instance ID for host protection.
- Status string
- The protection status of the host. The value can be
closed
oropened
. - Timeouts
Hss
Host Protection V5Timeouts - 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 string - The agent ID installed on the host.
- Agent
Status string - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - Asset
Value string - The asset importance. The value can be
important
,common
, ortest
. - Charging
Mode string - Specifies the charging mode for host protection. The valid values are as follows:
- Detect
Result string - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - Host
Id 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
.- Host
Name string - The host name.
- Host
Status string - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - Hss
Host stringProtection V5Id - The resource ID same as
host_id
. - Is
Wait boolHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- Os
Type string - The operating system type of the host. The value can be
Linux
orWindows
. - Private
Ip string - The private IP address of the host.
- Region string
- The region to which the HSS host protection resource belongs.
- Resource
Id string - Specifies Instance ID for host protection.
- Status string
- The protection status of the host. The value can be
closed
oropened
. - Timeouts
Hss
Host Protection V5Timeouts Args - 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 String - The agent ID installed on the host.
- agent
Status String - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - asset
Value String - The asset importance. The value can be
important
,common
, ortest
. - charging
Mode String - Specifies the charging mode for host protection. The valid values are as follows:
- detect
Result String - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - host
Id 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
.- host
Name String - The host name.
- host
Status String - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - hss
Host StringProtection V5Id - The resource ID same as
host_id
. - is
Wait BooleanHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- os
Type String - The operating system type of the host. The value can be
Linux
orWindows
. - private
Ip String - The private IP address of the host.
- region String
- The region to which the HSS host protection resource belongs.
- resource
Id String - Specifies Instance ID for host protection.
- status String
- The protection status of the host. The value can be
closed
oropened
. - timeouts
Hss
Host Protection V5Timeouts - 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 string - The agent ID installed on the host.
- agent
Status string - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - asset
Value string - The asset importance. The value can be
important
,common
, ortest
. - charging
Mode string - Specifies the charging mode for host protection. The valid values are as follows:
- detect
Result string - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - host
Id 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
.- host
Name string - The host name.
- host
Status string - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - hss
Host stringProtection V5Id - The resource ID same as
host_id
. - is
Wait booleanHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- os
Type string - The operating system type of the host. The value can be
Linux
orWindows
. - private
Ip string - The private IP address of the host.
- region string
- The region to which the HSS host protection resource belongs.
- resource
Id string - Specifies Instance ID for host protection.
- status string
- The protection status of the host. The value can be
closed
oropened
. - timeouts
Hss
Host Protection V5Timeouts - 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
, orinstalling
. - asset_
value str - The asset importance. The value can be
important
,common
, ortest
. - 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
, orscanning
. - 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
, orERROR
. - hss_
host_ strprotection_ v5_ id - The resource ID same as
host_id
. - is_
wait_ boolhost_ available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- os_
type str - The operating system type of the host. The value can be
Linux
orWindows
. - 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
oropened
. - timeouts
Hss
Host Protection V5Timeouts Args - 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.
- agent
Id String - The agent ID installed on the host.
- agent
Status String - The agent status of the host. The value can be
installed
,not_installed
,online
,offline
,install_failed
, orinstalling
. - asset
Value String - The asset importance. The value can be
important
,common
, ortest
. - charging
Mode String - Specifies the charging mode for host protection. The valid values are as follows:
- detect
Result String - The security detection result of the host. The value can be
undetected
,clean
,risk
, orscanning
. - host
Id 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
.- host
Name String - The host name.
- host
Status String - The host status. The value can be
ACTIVE
,SHUTOFF
,BUILDING
, orERROR
. - hss
Host StringProtection V5Id - The resource ID same as
host_id
. - is
Wait BooleanHost Available Specifies whether to wait for the host agent status to become
online
. The value can betrue
orfalse
. Defaults tofalse
.If this field is set to
true
, the program will wait for a maximum of30
minutes until the host's agent status becomesonline
, and then enable host protection.- os
Type String - The operating system type of the host. The value can be
Linux
orWindows
. - private
Ip String - The private IP address of the host.
- region String
- The region to which the HSS host protection resource belongs.
- resource
Id String - Specifies Instance ID for host protection.
- status String
- The protection status of the host. The value can be
closed
oropened
. - 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.