tencentcloud.CsipRiskCenter
Explore with Pulumi AI
Provides a resource to create a csip risk_center
Example Usage
If task_mode is 0
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CsipRiskCenter("example", {
assets: [{
asset: "49.232.172.248",
assetName: "iac-test",
assetType: "PublicIp",
instanceType: "1",
region: "ap-beijing",
}],
scanAssetType: 2,
scanItems: [
"port",
"poc",
"weakpass",
],
scanPlanContent: "0 0 0 */1 * * *",
scanPlanType: 0,
taskMode: 0,
taskName: "tf_example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CsipRiskCenter("example",
assets=[{
"asset": "49.232.172.248",
"asset_name": "iac-test",
"asset_type": "PublicIp",
"instance_type": "1",
"region": "ap-beijing",
}],
scan_asset_type=2,
scan_items=[
"port",
"poc",
"weakpass",
],
scan_plan_content="0 0 0 */1 * * *",
scan_plan_type=0,
task_mode=0,
task_name="tf_example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCsipRiskCenter(ctx, "example", &tencentcloud.CsipRiskCenterArgs{
Assets: tencentcloud.CsipRiskCenterAssetArray{
&tencentcloud.CsipRiskCenterAssetArgs{
Asset: pulumi.String("49.232.172.248"),
AssetName: pulumi.String("iac-test"),
AssetType: pulumi.String("PublicIp"),
InstanceType: pulumi.String("1"),
Region: pulumi.String("ap-beijing"),
},
},
ScanAssetType: pulumi.Float64(2),
ScanItems: pulumi.StringArray{
pulumi.String("port"),
pulumi.String("poc"),
pulumi.String("weakpass"),
},
ScanPlanContent: pulumi.String("0 0 0 */1 * * *"),
ScanPlanType: pulumi.Float64(0),
TaskMode: pulumi.Float64(0),
TaskName: pulumi.String("tf_example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.CsipRiskCenter("example", new()
{
Assets = new[]
{
new Tencentcloud.Inputs.CsipRiskCenterAssetArgs
{
Asset = "49.232.172.248",
AssetName = "iac-test",
AssetType = "PublicIp",
InstanceType = "1",
Region = "ap-beijing",
},
},
ScanAssetType = 2,
ScanItems = new[]
{
"port",
"poc",
"weakpass",
},
ScanPlanContent = "0 0 0 */1 * * *",
ScanPlanType = 0,
TaskMode = 0,
TaskName = "tf_example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CsipRiskCenter;
import com.pulumi.tencentcloud.CsipRiskCenterArgs;
import com.pulumi.tencentcloud.inputs.CsipRiskCenterAssetArgs;
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 example = new CsipRiskCenter("example", CsipRiskCenterArgs.builder()
.assets(CsipRiskCenterAssetArgs.builder()
.asset("49.232.172.248")
.assetName("iac-test")
.assetType("PublicIp")
.instanceType("1")
.region("ap-beijing")
.build())
.scanAssetType(2)
.scanItems(
"port",
"poc",
"weakpass")
.scanPlanContent("0 0 0 */1 * * *")
.scanPlanType(0)
.taskMode(0)
.taskName("tf_example")
.build());
}
}
resources:
example:
type: tencentcloud:CsipRiskCenter
properties:
assets:
- asset: 49.232.172.248
assetName: iac-test
assetType: PublicIp
instanceType: '1'
region: ap-beijing
scanAssetType: 2
scanItems:
- port
- poc
- weakpass
scanPlanContent: 0 0 0 */1 * * *
scanPlanType: 0
taskMode: 0
taskName: tf_example
If task_mode is 1
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CsipRiskCenter("example", {
scanAssetType: 1,
scanItems: [
"port",
"poc",
],
scanPlanType: 1,
taskMode: 1,
taskName: "tf_example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CsipRiskCenter("example",
scan_asset_type=1,
scan_items=[
"port",
"poc",
],
scan_plan_type=1,
task_mode=1,
task_name="tf_example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCsipRiskCenter(ctx, "example", &tencentcloud.CsipRiskCenterArgs{
ScanAssetType: pulumi.Float64(1),
ScanItems: pulumi.StringArray{
pulumi.String("port"),
pulumi.String("poc"),
},
ScanPlanType: pulumi.Float64(1),
TaskMode: pulumi.Float64(1),
TaskName: pulumi.String("tf_example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.CsipRiskCenter("example", new()
{
ScanAssetType = 1,
ScanItems = new[]
{
"port",
"poc",
},
ScanPlanType = 1,
TaskMode = 1,
TaskName = "tf_example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CsipRiskCenter;
import com.pulumi.tencentcloud.CsipRiskCenterArgs;
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 example = new CsipRiskCenter("example", CsipRiskCenterArgs.builder()
.scanAssetType(1)
.scanItems(
"port",
"poc")
.scanPlanType(1)
.taskMode(1)
.taskName("tf_example")
.build());
}
}
resources:
example:
type: tencentcloud:CsipRiskCenter
properties:
scanAssetType: 1
scanItems:
- port
- poc
scanPlanType: 1
taskMode: 1
taskName: tf_example
If task_mode is 2
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CsipRiskCenter("example", {
assets: [{
asset: "ins-9p3dkkwy",
assetName: "sub machine of tke",
assetType: "CVM",
instanceType: "Instance",
region: "ap-guangzhou",
}],
scanAssetType: 2,
scanItems: [
"port",
"configrisk",
"poc",
"weakpass",
],
scanPlanContent: "0 0 0 20 3 * 2024",
scanPlanType: 2,
taskAdvanceCfg: {
cfgRisks: [{
enable: 1,
itemId: "02c9337f-a6da-49b4-8858-64663a02b79f",
resourceType: "cdb;rds",
}],
portRisks: [{
checkType: 0,
detail: "22、8080、80、443、3380、3389常见流量端",
enable: 1,
portSets: "常见端口",
}],
vulRisks: [{
enable: 1,
riskId: "f79e371ce5f644f0fdc72a143144c4b2",
}],
weakPwdRisks: [{
checkItemId: 50,
enable: 1,
}],
},
taskMode: 2,
taskName: "tf_example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CsipRiskCenter("example",
assets=[{
"asset": "ins-9p3dkkwy",
"asset_name": "sub machine of tke",
"asset_type": "CVM",
"instance_type": "Instance",
"region": "ap-guangzhou",
}],
scan_asset_type=2,
scan_items=[
"port",
"configrisk",
"poc",
"weakpass",
],
scan_plan_content="0 0 0 20 3 * 2024",
scan_plan_type=2,
task_advance_cfg={
"cfg_risks": [{
"enable": 1,
"item_id": "02c9337f-a6da-49b4-8858-64663a02b79f",
"resource_type": "cdb;rds",
}],
"port_risks": [{
"check_type": 0,
"detail": "22、8080、80、443、3380、3389常见流量端",
"enable": 1,
"port_sets": "常见端口",
}],
"vul_risks": [{
"enable": 1,
"risk_id": "f79e371ce5f644f0fdc72a143144c4b2",
}],
"weak_pwd_risks": [{
"check_item_id": 50,
"enable": 1,
}],
},
task_mode=2,
task_name="tf_example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCsipRiskCenter(ctx, "example", &tencentcloud.CsipRiskCenterArgs{
Assets: tencentcloud.CsipRiskCenterAssetArray{
&tencentcloud.CsipRiskCenterAssetArgs{
Asset: pulumi.String("ins-9p3dkkwy"),
AssetName: pulumi.String("sub machine of tke"),
AssetType: pulumi.String("CVM"),
InstanceType: pulumi.String("Instance"),
Region: pulumi.String("ap-guangzhou"),
},
},
ScanAssetType: pulumi.Float64(2),
ScanItems: pulumi.StringArray{
pulumi.String("port"),
pulumi.String("configrisk"),
pulumi.String("poc"),
pulumi.String("weakpass"),
},
ScanPlanContent: pulumi.String("0 0 0 20 3 * 2024"),
ScanPlanType: pulumi.Float64(2),
TaskAdvanceCfg: &tencentcloud.CsipRiskCenterTaskAdvanceCfgArgs{
CfgRisks: tencentcloud.CsipRiskCenterTaskAdvanceCfgCfgRiskArray{
&tencentcloud.CsipRiskCenterTaskAdvanceCfgCfgRiskArgs{
Enable: pulumi.Float64(1),
ItemId: pulumi.String("02c9337f-a6da-49b4-8858-64663a02b79f"),
ResourceType: pulumi.String("cdb;rds"),
},
},
PortRisks: tencentcloud.CsipRiskCenterTaskAdvanceCfgPortRiskArray{
&tencentcloud.CsipRiskCenterTaskAdvanceCfgPortRiskArgs{
CheckType: pulumi.Float64(0),
Detail: pulumi.String("22、8080、80、443、3380、3389常见流量端"),
Enable: pulumi.Float64(1),
PortSets: pulumi.String("常见端口"),
},
},
VulRisks: tencentcloud.CsipRiskCenterTaskAdvanceCfgVulRiskArray{
&tencentcloud.CsipRiskCenterTaskAdvanceCfgVulRiskArgs{
Enable: pulumi.Float64(1),
RiskId: pulumi.String("f79e371ce5f644f0fdc72a143144c4b2"),
},
},
WeakPwdRisks: tencentcloud.CsipRiskCenterTaskAdvanceCfgWeakPwdRiskArray{
&tencentcloud.CsipRiskCenterTaskAdvanceCfgWeakPwdRiskArgs{
CheckItemId: pulumi.Float64(50),
Enable: pulumi.Float64(1),
},
},
},
TaskMode: pulumi.Float64(2),
TaskName: pulumi.String("tf_example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.CsipRiskCenter("example", new()
{
Assets = new[]
{
new Tencentcloud.Inputs.CsipRiskCenterAssetArgs
{
Asset = "ins-9p3dkkwy",
AssetName = "sub machine of tke",
AssetType = "CVM",
InstanceType = "Instance",
Region = "ap-guangzhou",
},
},
ScanAssetType = 2,
ScanItems = new[]
{
"port",
"configrisk",
"poc",
"weakpass",
},
ScanPlanContent = "0 0 0 20 3 * 2024",
ScanPlanType = 2,
TaskAdvanceCfg = new Tencentcloud.Inputs.CsipRiskCenterTaskAdvanceCfgArgs
{
CfgRisks = new[]
{
new Tencentcloud.Inputs.CsipRiskCenterTaskAdvanceCfgCfgRiskArgs
{
Enable = 1,
ItemId = "02c9337f-a6da-49b4-8858-64663a02b79f",
ResourceType = "cdb;rds",
},
},
PortRisks = new[]
{
new Tencentcloud.Inputs.CsipRiskCenterTaskAdvanceCfgPortRiskArgs
{
CheckType = 0,
Detail = "22、8080、80、443、3380、3389常见流量端",
Enable = 1,
PortSets = "常见端口",
},
},
VulRisks = new[]
{
new Tencentcloud.Inputs.CsipRiskCenterTaskAdvanceCfgVulRiskArgs
{
Enable = 1,
RiskId = "f79e371ce5f644f0fdc72a143144c4b2",
},
},
WeakPwdRisks = new[]
{
new Tencentcloud.Inputs.CsipRiskCenterTaskAdvanceCfgWeakPwdRiskArgs
{
CheckItemId = 50,
Enable = 1,
},
},
},
TaskMode = 2,
TaskName = "tf_example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CsipRiskCenter;
import com.pulumi.tencentcloud.CsipRiskCenterArgs;
import com.pulumi.tencentcloud.inputs.CsipRiskCenterAssetArgs;
import com.pulumi.tencentcloud.inputs.CsipRiskCenterTaskAdvanceCfgArgs;
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 example = new CsipRiskCenter("example", CsipRiskCenterArgs.builder()
.assets(CsipRiskCenterAssetArgs.builder()
.asset("ins-9p3dkkwy")
.assetName("sub machine of tke")
.assetType("CVM")
.instanceType("Instance")
.region("ap-guangzhou")
.build())
.scanAssetType(2)
.scanItems(
"port",
"configrisk",
"poc",
"weakpass")
.scanPlanContent("0 0 0 20 3 * 2024")
.scanPlanType(2)
.taskAdvanceCfg(CsipRiskCenterTaskAdvanceCfgArgs.builder()
.cfgRisks(CsipRiskCenterTaskAdvanceCfgCfgRiskArgs.builder()
.enable(1)
.itemId("02c9337f-a6da-49b4-8858-64663a02b79f")
.resourceType("cdb;rds")
.build())
.portRisks(CsipRiskCenterTaskAdvanceCfgPortRiskArgs.builder()
.checkType(0)
.detail("22、8080、80、443、3380、3389常见流量端")
.enable(1)
.portSets("常见端口")
.build())
.vulRisks(CsipRiskCenterTaskAdvanceCfgVulRiskArgs.builder()
.enable(1)
.riskId("f79e371ce5f644f0fdc72a143144c4b2")
.build())
.weakPwdRisks(CsipRiskCenterTaskAdvanceCfgWeakPwdRiskArgs.builder()
.checkItemId(50)
.enable(1)
.build())
.build())
.taskMode(2)
.taskName("tf_example")
.build());
}
}
resources:
example:
type: tencentcloud:CsipRiskCenter
properties:
assets:
- asset: ins-9p3dkkwy
assetName: sub machine of tke
assetType: CVM
instanceType: Instance
region: ap-guangzhou
scanAssetType: 2
scanItems:
- port
- configrisk
- poc
- weakpass
scanPlanContent: 0 0 0 20 3 * 2024
scanPlanType: 2
taskAdvanceCfg:
cfgRisks:
- enable: 1
itemId: 02c9337f-a6da-49b4-8858-64663a02b79f
resourceType: cdb;rds
portRisks:
- checkType: 0
detail: 22、8080、80、443、3380、3389常见流量端
enable: 1
portSets: 常见端口
vulRisks:
- enable: 1
riskId: f79e371ce5f644f0fdc72a143144c4b2
weakPwdRisks:
- checkItemId: 50
enable: 1
taskMode: 2
taskName: tf_example
Create CsipRiskCenter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CsipRiskCenter(name: string, args: CsipRiskCenterArgs, opts?: CustomResourceOptions);
@overload
def CsipRiskCenter(resource_name: str,
args: CsipRiskCenterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CsipRiskCenter(resource_name: str,
opts: Optional[ResourceOptions] = None,
scan_asset_type: Optional[float] = None,
scan_items: Optional[Sequence[str]] = None,
scan_plan_type: Optional[float] = None,
task_name: Optional[str] = None,
assets: Optional[Sequence[CsipRiskCenterAssetArgs]] = None,
csip_risk_center_id: Optional[str] = None,
scan_plan_content: Optional[str] = None,
self_defining_assets: Optional[Sequence[str]] = None,
task_advance_cfg: Optional[CsipRiskCenterTaskAdvanceCfgArgs] = None,
task_mode: Optional[float] = None)
func NewCsipRiskCenter(ctx *Context, name string, args CsipRiskCenterArgs, opts ...ResourceOption) (*CsipRiskCenter, error)
public CsipRiskCenter(string name, CsipRiskCenterArgs args, CustomResourceOptions? opts = null)
public CsipRiskCenter(String name, CsipRiskCenterArgs args)
public CsipRiskCenter(String name, CsipRiskCenterArgs args, CustomResourceOptions options)
type: tencentcloud:CsipRiskCenter
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 CsipRiskCenterArgs
- 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 CsipRiskCenterArgs
- 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 CsipRiskCenterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CsipRiskCenterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CsipRiskCenterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CsipRiskCenter 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 CsipRiskCenter resource accepts the following input properties:
- Scan
Asset doubleType - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- Scan
Items List<string> - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- Scan
Plan doubleType - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- Task
Name string - Task Name.
- Assets
List<Csip
Risk Center Asset> - Scan the asset information list.
- Csip
Risk stringCenter Id - ID of the resource.
- Scan
Plan stringContent - Scan plan details.
- Self
Defining List<string>Assets - Ip/domain/url array.
- Task
Advance CsipCfg Risk Center Task Advance Cfg - Advanced configuration.
- Task
Mode double - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- Scan
Asset float64Type - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- Scan
Items []string - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- Scan
Plan float64Type - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- Task
Name string - Task Name.
- Assets
[]Csip
Risk Center Asset Args - Scan the asset information list.
- Csip
Risk stringCenter Id - ID of the resource.
- Scan
Plan stringContent - Scan plan details.
- Self
Defining []stringAssets - Ip/domain/url array.
- Task
Advance CsipCfg Risk Center Task Advance Cfg Args - Advanced configuration.
- Task
Mode float64 - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- scan
Asset DoubleType - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- scan
Items List<String> - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- scan
Plan DoubleType - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- task
Name String - Task Name.
- assets
List<Csip
Risk Center Asset> - Scan the asset information list.
- csip
Risk StringCenter Id - ID of the resource.
- scan
Plan StringContent - Scan plan details.
- self
Defining List<String>Assets - Ip/domain/url array.
- task
Advance CsipCfg Risk Center Task Advance Cfg - Advanced configuration.
- task
Mode Double - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- scan
Asset numberType - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- scan
Items string[] - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- scan
Plan numberType - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- task
Name string - Task Name.
- assets
Csip
Risk Center Asset[] - Scan the asset information list.
- csip
Risk stringCenter Id - ID of the resource.
- scan
Plan stringContent - Scan plan details.
- self
Defining string[]Assets - Ip/domain/url array.
- task
Advance CsipCfg Risk Center Task Advance Cfg - Advanced configuration.
- task
Mode number - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- scan_
asset_ floattype - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- scan_
items Sequence[str] - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- scan_
plan_ floattype - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- task_
name str - Task Name.
- assets
Sequence[Csip
Risk Center Asset Args] - Scan the asset information list.
- csip_
risk_ strcenter_ id - ID of the resource.
- scan_
plan_ strcontent - Scan plan details.
- self_
defining_ Sequence[str]assets - Ip/domain/url array.
- task_
advance_ Csipcfg Risk Center Task Advance Cfg Args - Advanced configuration.
- task_
mode float - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- scan
Asset NumberType - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- scan
Items List<String> - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- scan
Plan NumberType - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- task
Name String - Task Name.
- assets List<Property Map>
- Scan the asset information list.
- csip
Risk StringCenter Id - ID of the resource.
- scan
Plan StringContent - Scan plan details.
- self
Defining List<String>Assets - Ip/domain/url array.
- task
Advance Property MapCfg - Advanced configuration.
- task
Mode Number - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
Outputs
All input properties are implicitly available as output properties. Additionally, the CsipRiskCenter resource produces the following output properties:
Look up Existing CsipRiskCenter Resource
Get an existing CsipRiskCenter 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?: CsipRiskCenterState, opts?: CustomResourceOptions): CsipRiskCenter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
assets: Optional[Sequence[CsipRiskCenterAssetArgs]] = None,
csip_risk_center_id: Optional[str] = None,
scan_asset_type: Optional[float] = None,
scan_from: Optional[str] = None,
scan_items: Optional[Sequence[str]] = None,
scan_plan_content: Optional[str] = None,
scan_plan_type: Optional[float] = None,
self_defining_assets: Optional[Sequence[str]] = None,
task_advance_cfg: Optional[CsipRiskCenterTaskAdvanceCfgArgs] = None,
task_mode: Optional[float] = None,
task_name: Optional[str] = None) -> CsipRiskCenter
func GetCsipRiskCenter(ctx *Context, name string, id IDInput, state *CsipRiskCenterState, opts ...ResourceOption) (*CsipRiskCenter, error)
public static CsipRiskCenter Get(string name, Input<string> id, CsipRiskCenterState? state, CustomResourceOptions? opts = null)
public static CsipRiskCenter get(String name, Output<String> id, CsipRiskCenterState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CsipRiskCenter 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.
- Assets
List<Csip
Risk Center Asset> - Scan the asset information list.
- Csip
Risk stringCenter Id - ID of the resource.
- Scan
Asset doubleType - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- Scan
From string - Request origin.
- Scan
Items List<string> - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- Scan
Plan stringContent - Scan plan details.
- Scan
Plan doubleType - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- Self
Defining List<string>Assets - Ip/domain/url array.
- Task
Advance CsipCfg Risk Center Task Advance Cfg - Advanced configuration.
- Task
Mode double - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- Task
Name string - Task Name.
- Assets
[]Csip
Risk Center Asset Args - Scan the asset information list.
- Csip
Risk stringCenter Id - ID of the resource.
- Scan
Asset float64Type - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- Scan
From string - Request origin.
- Scan
Items []string - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- Scan
Plan stringContent - Scan plan details.
- Scan
Plan float64Type - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- Self
Defining []stringAssets - Ip/domain/url array.
- Task
Advance CsipCfg Risk Center Task Advance Cfg Args - Advanced configuration.
- Task
Mode float64 - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- Task
Name string - Task Name.
- assets
List<Csip
Risk Center Asset> - Scan the asset information list.
- csip
Risk StringCenter Id - ID of the resource.
- scan
Asset DoubleType - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- scan
From String - Request origin.
- scan
Items List<String> - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- scan
Plan StringContent - Scan plan details.
- scan
Plan DoubleType - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- self
Defining List<String>Assets - Ip/domain/url array.
- task
Advance CsipCfg Risk Center Task Advance Cfg - Advanced configuration.
- task
Mode Double - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- task
Name String - Task Name.
- assets
Csip
Risk Center Asset[] - Scan the asset information list.
- csip
Risk stringCenter Id - ID of the resource.
- scan
Asset numberType - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- scan
From string - Request origin.
- scan
Items string[] - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- scan
Plan stringContent - Scan plan details.
- scan
Plan numberType - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- self
Defining string[]Assets - Ip/domain/url array.
- task
Advance CsipCfg Risk Center Task Advance Cfg - Advanced configuration.
- task
Mode number - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- task
Name string - Task Name.
- assets
Sequence[Csip
Risk Center Asset Args] - Scan the asset information list.
- csip_
risk_ strcenter_ id - ID of the resource.
- scan_
asset_ floattype - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- scan_
from str - Request origin.
- scan_
items Sequence[str] - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- scan_
plan_ strcontent - Scan plan details.
- scan_
plan_ floattype - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- self_
defining_ Sequence[str]assets - Ip/domain/url array.
- task_
advance_ Csipcfg Risk Center Task Advance Cfg Args - Advanced configuration.
- task_
mode float - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- task_
name str - Task Name.
- assets List<Property Map>
- Scan the asset information list.
- csip
Risk StringCenter Id - ID of the resource.
- scan
Asset NumberType - 0- Full scan, 1- Specify asset scan, 2- Exclude asset scan, 3- Manually fill in the scan. If 1 and 2 are required while task_mode not 1, the Assets field is required. If 3 is required, SelfDefiningAssets is required.
- scan
From String - Request origin.
- scan
Items List<String> - Scan Project. Example: port/poc/weakpass/webcontent/configrisk/exposedserver.
- scan
Plan StringContent - Scan plan details.
- scan
Plan NumberType - 0- Periodic task, 1- immediate scan, 2- periodic scan, 3- Custom; 0, 2 and 3 are required for scan_plan_content.
- self
Defining List<String>Assets - Ip/domain/url array.
- task
Advance Property MapCfg - Advanced configuration.
- task
Mode Number - Physical examination mode, 0-standard mode, 1-fast mode, 2-advanced mode, default standard mode.
- task
Name String - Task Name.
Supporting Types
CsipRiskCenterAsset, CsipRiskCenterAssetArgs
- Arn string
- Multi-cloud asset unique idNote: This field may return null, indicating that a valid value cannot be obtained.
- Asset string
- Ip/ domain name/asset id, database id, etc.
- Asset
Name string - Asset nameNote: This field may return null, indicating that a valid value cannot be obtained.
- Asset
Type string - Asset classificationNote: This field may return null, indicating that a valid value cannot be obtained.
- Instance
Type string - Asset typeNote: This field may return null, indicating that a valid value cannot be obtained.
- Region string
- RegionNote: This field may return null, indicating that a valid value cannot be obtained.
- Arn string
- Multi-cloud asset unique idNote: This field may return null, indicating that a valid value cannot be obtained.
- Asset string
- Ip/ domain name/asset id, database id, etc.
- Asset
Name string - Asset nameNote: This field may return null, indicating that a valid value cannot be obtained.
- Asset
Type string - Asset classificationNote: This field may return null, indicating that a valid value cannot be obtained.
- Instance
Type string - Asset typeNote: This field may return null, indicating that a valid value cannot be obtained.
- Region string
- RegionNote: This field may return null, indicating that a valid value cannot be obtained.
- arn String
- Multi-cloud asset unique idNote: This field may return null, indicating that a valid value cannot be obtained.
- asset String
- Ip/ domain name/asset id, database id, etc.
- asset
Name String - Asset nameNote: This field may return null, indicating that a valid value cannot be obtained.
- asset
Type String - Asset classificationNote: This field may return null, indicating that a valid value cannot be obtained.
- instance
Type String - Asset typeNote: This field may return null, indicating that a valid value cannot be obtained.
- region String
- RegionNote: This field may return null, indicating that a valid value cannot be obtained.
- arn string
- Multi-cloud asset unique idNote: This field may return null, indicating that a valid value cannot be obtained.
- asset string
- Ip/ domain name/asset id, database id, etc.
- asset
Name string - Asset nameNote: This field may return null, indicating that a valid value cannot be obtained.
- asset
Type string - Asset classificationNote: This field may return null, indicating that a valid value cannot be obtained.
- instance
Type string - Asset typeNote: This field may return null, indicating that a valid value cannot be obtained.
- region string
- RegionNote: This field may return null, indicating that a valid value cannot be obtained.
- arn str
- Multi-cloud asset unique idNote: This field may return null, indicating that a valid value cannot be obtained.
- asset str
- Ip/ domain name/asset id, database id, etc.
- asset_
name str - Asset nameNote: This field may return null, indicating that a valid value cannot be obtained.
- asset_
type str - Asset classificationNote: This field may return null, indicating that a valid value cannot be obtained.
- instance_
type str - Asset typeNote: This field may return null, indicating that a valid value cannot be obtained.
- region str
- RegionNote: This field may return null, indicating that a valid value cannot be obtained.
- arn String
- Multi-cloud asset unique idNote: This field may return null, indicating that a valid value cannot be obtained.
- asset String
- Ip/ domain name/asset id, database id, etc.
- asset
Name String - Asset nameNote: This field may return null, indicating that a valid value cannot be obtained.
- asset
Type String - Asset classificationNote: This field may return null, indicating that a valid value cannot be obtained.
- instance
Type String - Asset typeNote: This field may return null, indicating that a valid value cannot be obtained.
- region String
- RegionNote: This field may return null, indicating that a valid value cannot be obtained.
CsipRiskCenterTaskAdvanceCfg, CsipRiskCenterTaskAdvanceCfgArgs
- Cfg
Risks List<CsipRisk Center Task Advance Cfg Cfg Risk> - Configure advanced risk Settings.
- Port
Risks List<CsipRisk Center Task Advance Cfg Port Risk> - Advanced Port Risk Configuration.
- Vul
Risks List<CsipRisk Center Task Advance Cfg Vul Risk> - Advanced vulnerability risk configuration.
- Weak
Pwd List<CsipRisks Risk Center Task Advance Cfg Weak Pwd Risk> - Weak password risk advanced configuration.
- Cfg
Risks []CsipRisk Center Task Advance Cfg Cfg Risk - Configure advanced risk Settings.
- Port
Risks []CsipRisk Center Task Advance Cfg Port Risk - Advanced Port Risk Configuration.
- Vul
Risks []CsipRisk Center Task Advance Cfg Vul Risk - Advanced vulnerability risk configuration.
- Weak
Pwd []CsipRisks Risk Center Task Advance Cfg Weak Pwd Risk - Weak password risk advanced configuration.
- cfg
Risks List<CsipRisk Center Task Advance Cfg Cfg Risk> - Configure advanced risk Settings.
- port
Risks List<CsipRisk Center Task Advance Cfg Port Risk> - Advanced Port Risk Configuration.
- vul
Risks List<CsipRisk Center Task Advance Cfg Vul Risk> - Advanced vulnerability risk configuration.
- weak
Pwd List<CsipRisks Risk Center Task Advance Cfg Weak Pwd Risk> - Weak password risk advanced configuration.
- cfg
Risks CsipRisk Center Task Advance Cfg Cfg Risk[] - Configure advanced risk Settings.
- port
Risks CsipRisk Center Task Advance Cfg Port Risk[] - Advanced Port Risk Configuration.
- vul
Risks CsipRisk Center Task Advance Cfg Vul Risk[] - Advanced vulnerability risk configuration.
- weak
Pwd CsipRisks Risk Center Task Advance Cfg Weak Pwd Risk[] - Weak password risk advanced configuration.
- cfg_
risks Sequence[CsipRisk Center Task Advance Cfg Cfg Risk] - Configure advanced risk Settings.
- port_
risks Sequence[CsipRisk Center Task Advance Cfg Port Risk] - Advanced Port Risk Configuration.
- vul_
risks Sequence[CsipRisk Center Task Advance Cfg Vul Risk] - Advanced vulnerability risk configuration.
- weak_
pwd_ Sequence[Csiprisks Risk Center Task Advance Cfg Weak Pwd Risk] - Weak password risk advanced configuration.
- cfg
Risks List<Property Map> - Configure advanced risk Settings.
- port
Risks List<Property Map> - Advanced Port Risk Configuration.
- vul
Risks List<Property Map> - Advanced vulnerability risk configuration.
- weak
Pwd List<Property Map>Risks - Weak password risk advanced configuration.
CsipRiskCenterTaskAdvanceCfgCfgRisk, CsipRiskCenterTaskAdvanceCfgCfgRiskArgs
- Enable double
- Whether to enable, 0- No, 1- Enable.
- Item
Id string - Detection item ID.
- Resource
Type string - Resource type.
- Enable float64
- Whether to enable, 0- No, 1- Enable.
- Item
Id string - Detection item ID.
- Resource
Type string - Resource type.
- enable Double
- Whether to enable, 0- No, 1- Enable.
- item
Id String - Detection item ID.
- resource
Type String - Resource type.
- enable number
- Whether to enable, 0- No, 1- Enable.
- item
Id string - Detection item ID.
- resource
Type string - Resource type.
- enable float
- Whether to enable, 0- No, 1- Enable.
- item_
id str - Detection item ID.
- resource_
type str - Resource type.
- enable Number
- Whether to enable, 0- No, 1- Enable.
- item
Id String - Detection item ID.
- resource
Type String - Resource type.
CsipRiskCenterTaskAdvanceCfgPortRisk, CsipRiskCenterTaskAdvanceCfgPortRiskArgs
- check_
type float - Detection item type, 0-system defined, 1-user-defined.
- detail str
- Description of detection items.
- enable float
- Whether to enable, 0- No, 1- Enable.
- port_
sets str - Port collection, separated by commas.
CsipRiskCenterTaskAdvanceCfgVulRisk, CsipRiskCenterTaskAdvanceCfgVulRiskArgs
CsipRiskCenterTaskAdvanceCfgWeakPwdRisk, CsipRiskCenterTaskAdvanceCfgWeakPwdRiskArgs
- Check
Item doubleId - Detection item ID.
- Enable double
- Whether to enable, 0- No, 1- Enable.
- Check
Item float64Id - Detection item ID.
- Enable float64
- Whether to enable, 0- No, 1- Enable.
- check
Item DoubleId - Detection item ID.
- enable Double
- Whether to enable, 0- No, 1- Enable.
- check
Item numberId - Detection item ID.
- enable number
- Whether to enable, 0- No, 1- Enable.
- check_
item_ floatid - Detection item ID.
- enable float
- Whether to enable, 0- No, 1- Enable.
- check
Item NumberId - Detection item ID.
- enable Number
- Whether to enable, 0- No, 1- Enable.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.