gcore.DdosProtection
Explore with Pulumi AI
Represents DDoS protection profile
Create DdosProtection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DdosProtection(name: string, args: DdosProtectionArgs, opts?: CustomResourceOptions);
@overload
def DdosProtection(resource_name: str,
args: DdosProtectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DdosProtection(resource_name: str,
opts: Optional[ResourceOptions] = None,
bm_instance_id: Optional[str] = None,
ip_address: Optional[str] = None,
profile_template: Optional[float] = None,
active: Optional[bool] = None,
bgp: Optional[bool] = None,
ddos_protection_id: Optional[str] = None,
fields: Optional[Sequence[DdosProtectionFieldArgs]] = None,
last_updated: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None)
func NewDdosProtection(ctx *Context, name string, args DdosProtectionArgs, opts ...ResourceOption) (*DdosProtection, error)
public DdosProtection(string name, DdosProtectionArgs args, CustomResourceOptions? opts = null)
public DdosProtection(String name, DdosProtectionArgs args)
public DdosProtection(String name, DdosProtectionArgs args, CustomResourceOptions options)
type: gcore:DdosProtection
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 DdosProtectionArgs
- 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 DdosProtectionArgs
- 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 DdosProtectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DdosProtectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DdosProtectionArgs
- 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 ddosProtectionResource = new Gcore.DdosProtection("ddosProtectionResource", new()
{
BmInstanceId = "string",
IpAddress = "string",
ProfileTemplate = 0,
Active = false,
Bgp = false,
DdosProtectionId = "string",
Fields = new[]
{
new Gcore.Inputs.DdosProtectionFieldArgs
{
BaseField = 0,
Default = "string",
Description = "string",
FieldType = "string",
FieldValue = "string",
Id = 0,
Name = "string",
Required = false,
ValidationSchema = "string",
Value = "string",
},
},
LastUpdated = "string",
ProjectId = 0,
ProjectName = "string",
RegionId = 0,
RegionName = "string",
});
example, err := gcore.NewDdosProtection(ctx, "ddosProtectionResource", &gcore.DdosProtectionArgs{
BmInstanceId: pulumi.String("string"),
IpAddress: pulumi.String("string"),
ProfileTemplate: pulumi.Float64(0),
Active: pulumi.Bool(false),
Bgp: pulumi.Bool(false),
DdosProtectionId: pulumi.String("string"),
Fields: gcore.DdosProtectionFieldArray{
&gcore.DdosProtectionFieldArgs{
BaseField: pulumi.Float64(0),
Default: pulumi.String("string"),
Description: pulumi.String("string"),
FieldType: pulumi.String("string"),
FieldValue: pulumi.String("string"),
Id: pulumi.Float64(0),
Name: pulumi.String("string"),
Required: pulumi.Bool(false),
ValidationSchema: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
LastUpdated: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
})
var ddosProtectionResource = new DdosProtection("ddosProtectionResource", DdosProtectionArgs.builder()
.bmInstanceId("string")
.ipAddress("string")
.profileTemplate(0)
.active(false)
.bgp(false)
.ddosProtectionId("string")
.fields(DdosProtectionFieldArgs.builder()
.baseField(0)
.default_("string")
.description("string")
.fieldType("string")
.fieldValue("string")
.id(0)
.name("string")
.required(false)
.validationSchema("string")
.value("string")
.build())
.lastUpdated("string")
.projectId(0)
.projectName("string")
.regionId(0)
.regionName("string")
.build());
ddos_protection_resource = gcore.DdosProtection("ddosProtectionResource",
bm_instance_id="string",
ip_address="string",
profile_template=0,
active=False,
bgp=False,
ddos_protection_id="string",
fields=[{
"base_field": 0,
"default": "string",
"description": "string",
"field_type": "string",
"field_value": "string",
"id": 0,
"name": "string",
"required": False,
"validation_schema": "string",
"value": "string",
}],
last_updated="string",
project_id=0,
project_name="string",
region_id=0,
region_name="string")
const ddosProtectionResource = new gcore.DdosProtection("ddosProtectionResource", {
bmInstanceId: "string",
ipAddress: "string",
profileTemplate: 0,
active: false,
bgp: false,
ddosProtectionId: "string",
fields: [{
baseField: 0,
"default": "string",
description: "string",
fieldType: "string",
fieldValue: "string",
id: 0,
name: "string",
required: false,
validationSchema: "string",
value: "string",
}],
lastUpdated: "string",
projectId: 0,
projectName: "string",
regionId: 0,
regionName: "string",
});
type: gcore:DdosProtection
properties:
active: false
bgp: false
bmInstanceId: string
ddosProtectionId: string
fields:
- baseField: 0
default: string
description: string
fieldType: string
fieldValue: string
id: 0
name: string
required: false
validationSchema: string
value: string
ipAddress: string
lastUpdated: string
profileTemplate: 0
projectId: 0
projectName: string
regionId: 0
regionName: string
DdosProtection 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 DdosProtection resource accepts the following input properties:
- Bm
Instance stringId - Ip
Address string - IP address
- Profile
Template double - Profile template ID
- Active bool
- Activate profile
- Bgp bool
- Activate BGP protocol
- Ddos
Protection stringId - The ID of this resource.
- Fields
List<Ddos
Protection Field> - Last
Updated string - Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Bm
Instance stringId - Ip
Address string - IP address
- Profile
Template float64 - Profile template ID
- Active bool
- Activate profile
- Bgp bool
- Activate BGP protocol
- Ddos
Protection stringId - The ID of this resource.
- Fields
[]Ddos
Protection Field Args - Last
Updated string - Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- bm
Instance StringId - ip
Address String - IP address
- profile
Template Double - Profile template ID
- active Boolean
- Activate profile
- bgp Boolean
- Activate BGP protocol
- ddos
Protection StringId - The ID of this resource.
- fields
List<Ddos
Protection Field> - last
Updated String - project
Id Double - project
Name String - region
Id Double - region
Name String
- bm
Instance stringId - ip
Address string - IP address
- profile
Template number - Profile template ID
- active boolean
- Activate profile
- bgp boolean
- Activate BGP protocol
- ddos
Protection stringId - The ID of this resource.
- fields
Ddos
Protection Field[] - last
Updated string - project
Id number - project
Name string - region
Id number - region
Name string
- bm_
instance_ strid - ip_
address str - IP address
- profile_
template float - Profile template ID
- active bool
- Activate profile
- bgp bool
- Activate BGP protocol
- ddos_
protection_ strid - The ID of this resource.
- fields
Sequence[Ddos
Protection Field Args] - last_
updated str - project_
id float - project_
name str - region_
id float - region_
name str
- bm
Instance StringId - ip
Address String - IP address
- profile
Template Number - Profile template ID
- active Boolean
- Activate profile
- bgp Boolean
- Activate BGP protocol
- ddos
Protection StringId - The ID of this resource.
- fields List<Property Map>
- last
Updated String - project
Id Number - project
Name String - region
Id Number - region
Name String
Outputs
All input properties are implicitly available as output properties. Additionally, the DdosProtection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Protocols
List<Ddos
Protection Protocol> - List of protocols
- Site string
- Id string
- The provider-assigned unique ID for this managed resource.
- Protocols
[]Ddos
Protection Protocol - List of protocols
- Site string
- id String
- The provider-assigned unique ID for this managed resource.
- protocols
List<Ddos
Protection Protocol> - List of protocols
- site String
- id string
- The provider-assigned unique ID for this managed resource.
- protocols
Ddos
Protection Protocol[] - List of protocols
- site string
- id str
- The provider-assigned unique ID for this managed resource.
- protocols
Sequence[Ddos
Protection Protocol] - List of protocols
- site str
- id String
- The provider-assigned unique ID for this managed resource.
- protocols List<Property Map>
- List of protocols
- site String
Look up Existing DdosProtection Resource
Get an existing DdosProtection 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?: DdosProtectionState, opts?: CustomResourceOptions): DdosProtection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
bgp: Optional[bool] = None,
bm_instance_id: Optional[str] = None,
ddos_protection_id: Optional[str] = None,
fields: Optional[Sequence[DdosProtectionFieldArgs]] = None,
ip_address: Optional[str] = None,
last_updated: Optional[str] = None,
profile_template: Optional[float] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
protocols: Optional[Sequence[DdosProtectionProtocolArgs]] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
site: Optional[str] = None) -> DdosProtection
func GetDdosProtection(ctx *Context, name string, id IDInput, state *DdosProtectionState, opts ...ResourceOption) (*DdosProtection, error)
public static DdosProtection Get(string name, Input<string> id, DdosProtectionState? state, CustomResourceOptions? opts = null)
public static DdosProtection get(String name, Output<String> id, DdosProtectionState state, CustomResourceOptions options)
resources: _: type: gcore:DdosProtection 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.
- Active bool
- Activate profile
- Bgp bool
- Activate BGP protocol
- Bm
Instance stringId - Ddos
Protection stringId - The ID of this resource.
- Fields
List<Ddos
Protection Field> - Ip
Address string - IP address
- Last
Updated string - Profile
Template double - Profile template ID
- Project
Id double - Project
Name string - Protocols
List<Ddos
Protection Protocol> - List of protocols
- Region
Id double - Region
Name string - Site string
- Active bool
- Activate profile
- Bgp bool
- Activate BGP protocol
- Bm
Instance stringId - Ddos
Protection stringId - The ID of this resource.
- Fields
[]Ddos
Protection Field Args - Ip
Address string - IP address
- Last
Updated string - Profile
Template float64 - Profile template ID
- Project
Id float64 - Project
Name string - Protocols
[]Ddos
Protection Protocol Args - List of protocols
- Region
Id float64 - Region
Name string - Site string
- active Boolean
- Activate profile
- bgp Boolean
- Activate BGP protocol
- bm
Instance StringId - ddos
Protection StringId - The ID of this resource.
- fields
List<Ddos
Protection Field> - ip
Address String - IP address
- last
Updated String - profile
Template Double - Profile template ID
- project
Id Double - project
Name String - protocols
List<Ddos
Protection Protocol> - List of protocols
- region
Id Double - region
Name String - site String
- active boolean
- Activate profile
- bgp boolean
- Activate BGP protocol
- bm
Instance stringId - ddos
Protection stringId - The ID of this resource.
- fields
Ddos
Protection Field[] - ip
Address string - IP address
- last
Updated string - profile
Template number - Profile template ID
- project
Id number - project
Name string - protocols
Ddos
Protection Protocol[] - List of protocols
- region
Id number - region
Name string - site string
- active bool
- Activate profile
- bgp bool
- Activate BGP protocol
- bm_
instance_ strid - ddos_
protection_ strid - The ID of this resource.
- fields
Sequence[Ddos
Protection Field Args] - ip_
address str - IP address
- last_
updated str - profile_
template float - Profile template ID
- project_
id float - project_
name str - protocols
Sequence[Ddos
Protection Protocol Args] - List of protocols
- region_
id float - region_
name str - site str
- active Boolean
- Activate profile
- bgp Boolean
- Activate BGP protocol
- bm
Instance StringId - ddos
Protection StringId - The ID of this resource.
- fields List<Property Map>
- ip
Address String - IP address
- last
Updated String - profile
Template Number - Profile template ID
- project
Id Number - project
Name String - protocols List<Property Map>
- List of protocols
- region
Id Number - region
Name String - site String
Supporting Types
DdosProtectionField, DdosProtectionFieldArgs
- Base
Field double - Default string
- Description string
- Field description
- Field
Type string - Field
Value string - Complex value. Only one of 'value' or 'field_value' must be specified.
- Id double
- Name string
- Required bool
- Validation
Schema string - Json schema to validate field_values
- Value string
- Basic type value. Only one of 'value' or 'field_value' must be specified.
- Base
Field float64 - Default string
- Description string
- Field description
- Field
Type string - Field
Value string - Complex value. Only one of 'value' or 'field_value' must be specified.
- Id float64
- Name string
- Required bool
- Validation
Schema string - Json schema to validate field_values
- Value string
- Basic type value. Only one of 'value' or 'field_value' must be specified.
- base
Field Double - default_ String
- description String
- Field description
- field
Type String - field
Value String - Complex value. Only one of 'value' or 'field_value' must be specified.
- id Double
- name String
- required Boolean
- validation
Schema String - Json schema to validate field_values
- value String
- Basic type value. Only one of 'value' or 'field_value' must be specified.
- base
Field number - default string
- description string
- Field description
- field
Type string - field
Value string - Complex value. Only one of 'value' or 'field_value' must be specified.
- id number
- name string
- required boolean
- validation
Schema string - Json schema to validate field_values
- value string
- Basic type value. Only one of 'value' or 'field_value' must be specified.
- base_
field float - default str
- description str
- Field description
- field_
type str - field_
value str - Complex value. Only one of 'value' or 'field_value' must be specified.
- id float
- name str
- required bool
- validation_
schema str - Json schema to validate field_values
- value str
- Basic type value. Only one of 'value' or 'field_value' must be specified.
- base
Field Number - default String
- description String
- Field description
- field
Type String - field
Value String - Complex value. Only one of 'value' or 'field_value' must be specified.
- id Number
- name String
- required Boolean
- validation
Schema String - Json schema to validate field_values
- value String
- Basic type value. Only one of 'value' or 'field_value' must be specified.
DdosProtectionProtocol, DdosProtectionProtocolArgs
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.