1. Packages
  2. Gcorelabs Provider
  3. API Docs
  4. DdosProtection
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

gcorelabs.DdosProtection

Explore with Pulumi AI

gcorelabs logo
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

    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: gcorelabs: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 Gcorelabs.DdosProtection("ddosProtectionResource", new()
    {
        BmInstanceId = "string",
        IpAddress = "string",
        ProfileTemplate = 0,
        Active = false,
        Bgp = false,
        DdosProtectionId = "string",
        Fields = new[]
        {
            new Gcorelabs.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 := gcorelabs.NewDdosProtection(ctx, "ddosProtectionResource", &gcorelabs.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: gcorelabs.DdosProtectionFieldArray{
    		&gcorelabs.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 = gcorelabs.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 gcorelabs.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: gcorelabs: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:

    BmInstanceId string
    IpAddress string
    IP address
    ProfileTemplate double
    Profile template ID
    Active bool
    Activate profile
    Bgp bool
    Activate BGP protocol
    DdosProtectionId string
    The ID of this resource.
    Fields List<DdosProtectionField>
    LastUpdated string
    ProjectId double
    ProjectName string
    RegionId double
    RegionName string
    BmInstanceId string
    IpAddress string
    IP address
    ProfileTemplate float64
    Profile template ID
    Active bool
    Activate profile
    Bgp bool
    Activate BGP protocol
    DdosProtectionId string
    The ID of this resource.
    Fields []DdosProtectionFieldArgs
    LastUpdated string
    ProjectId float64
    ProjectName string
    RegionId float64
    RegionName string
    bmInstanceId String
    ipAddress String
    IP address
    profileTemplate Double
    Profile template ID
    active Boolean
    Activate profile
    bgp Boolean
    Activate BGP protocol
    ddosProtectionId String
    The ID of this resource.
    fields List<DdosProtectionField>
    lastUpdated String
    projectId Double
    projectName String
    regionId Double
    regionName String
    bmInstanceId string
    ipAddress string
    IP address
    profileTemplate number
    Profile template ID
    active boolean
    Activate profile
    bgp boolean
    Activate BGP protocol
    ddosProtectionId string
    The ID of this resource.
    fields DdosProtectionField[]
    lastUpdated string
    projectId number
    projectName string
    regionId number
    regionName string
    bm_instance_id str
    ip_address str
    IP address
    profile_template float
    Profile template ID
    active bool
    Activate profile
    bgp bool
    Activate BGP protocol
    ddos_protection_id str
    The ID of this resource.
    fields Sequence[DdosProtectionFieldArgs]
    last_updated str
    project_id float
    project_name str
    region_id float
    region_name str
    bmInstanceId String
    ipAddress String
    IP address
    profileTemplate Number
    Profile template ID
    active Boolean
    Activate profile
    bgp Boolean
    Activate BGP protocol
    ddosProtectionId String
    The ID of this resource.
    fields List<Property Map>
    lastUpdated String
    projectId Number
    projectName String
    regionId Number
    regionName 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.
    Price string
    Protocols List<DdosProtectionProtocol>
    List of protocols
    Site string
    Id string
    The provider-assigned unique ID for this managed resource.
    Price string
    Protocols []DdosProtectionProtocol
    List of protocols
    Site string
    id String
    The provider-assigned unique ID for this managed resource.
    price String
    protocols List<DdosProtectionProtocol>
    List of protocols
    site String
    id string
    The provider-assigned unique ID for this managed resource.
    price string
    protocols DdosProtectionProtocol[]
    List of protocols
    site string
    id str
    The provider-assigned unique ID for this managed resource.
    price str
    protocols Sequence[DdosProtectionProtocol]
    List of protocols
    site str
    id String
    The provider-assigned unique ID for this managed resource.
    price String
    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,
            price: 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: gcorelabs: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.
    The following state arguments are supported:
    Active bool
    Activate profile
    Bgp bool
    Activate BGP protocol
    BmInstanceId string
    DdosProtectionId string
    The ID of this resource.
    Fields List<DdosProtectionField>
    IpAddress string
    IP address
    LastUpdated string
    Price string
    ProfileTemplate double
    Profile template ID
    ProjectId double
    ProjectName string
    Protocols List<DdosProtectionProtocol>
    List of protocols
    RegionId double
    RegionName string
    Site string
    Active bool
    Activate profile
    Bgp bool
    Activate BGP protocol
    BmInstanceId string
    DdosProtectionId string
    The ID of this resource.
    Fields []DdosProtectionFieldArgs
    IpAddress string
    IP address
    LastUpdated string
    Price string
    ProfileTemplate float64
    Profile template ID
    ProjectId float64
    ProjectName string
    Protocols []DdosProtectionProtocolArgs
    List of protocols
    RegionId float64
    RegionName string
    Site string
    active Boolean
    Activate profile
    bgp Boolean
    Activate BGP protocol
    bmInstanceId String
    ddosProtectionId String
    The ID of this resource.
    fields List<DdosProtectionField>
    ipAddress String
    IP address
    lastUpdated String
    price String
    profileTemplate Double
    Profile template ID
    projectId Double
    projectName String
    protocols List<DdosProtectionProtocol>
    List of protocols
    regionId Double
    regionName String
    site String
    active boolean
    Activate profile
    bgp boolean
    Activate BGP protocol
    bmInstanceId string
    ddosProtectionId string
    The ID of this resource.
    fields DdosProtectionField[]
    ipAddress string
    IP address
    lastUpdated string
    price string
    profileTemplate number
    Profile template ID
    projectId number
    projectName string
    protocols DdosProtectionProtocol[]
    List of protocols
    regionId number
    regionName string
    site string
    active bool
    Activate profile
    bgp bool
    Activate BGP protocol
    bm_instance_id str
    ddos_protection_id str
    The ID of this resource.
    fields Sequence[DdosProtectionFieldArgs]
    ip_address str
    IP address
    last_updated str
    price str
    profile_template float
    Profile template ID
    project_id float
    project_name str
    protocols Sequence[DdosProtectionProtocolArgs]
    List of protocols
    region_id float
    region_name str
    site str
    active Boolean
    Activate profile
    bgp Boolean
    Activate BGP protocol
    bmInstanceId String
    ddosProtectionId String
    The ID of this resource.
    fields List<Property Map>
    ipAddress String
    IP address
    lastUpdated String
    price String
    profileTemplate Number
    Profile template ID
    projectId Number
    projectName String
    protocols List<Property Map>
    List of protocols
    regionId Number
    regionName String
    site String

    Supporting Types

    DdosProtectionField, DdosProtectionFieldArgs

    BaseField double
    Default string
    Description string
    Field description
    FieldType string
    FieldValue string
    Complex value. Only one of 'value' or 'field_value' must be specified.
    Id double
    The ID of this resource.
    Name string
    Required bool
    ValidationSchema string
    Json schema to validate field_values
    Value string
    Basic type value. Only one of 'value' or 'field_value' must be specified.
    BaseField float64
    Default string
    Description string
    Field description
    FieldType string
    FieldValue string
    Complex value. Only one of 'value' or 'field_value' must be specified.
    Id float64
    The ID of this resource.
    Name string
    Required bool
    ValidationSchema string
    Json schema to validate field_values
    Value string
    Basic type value. Only one of 'value' or 'field_value' must be specified.
    baseField Double
    default_ String
    description String
    Field description
    fieldType String
    fieldValue String
    Complex value. Only one of 'value' or 'field_value' must be specified.
    id Double
    The ID of this resource.
    name String
    required Boolean
    validationSchema String
    Json schema to validate field_values
    value String
    Basic type value. Only one of 'value' or 'field_value' must be specified.
    baseField number
    default string
    description string
    Field description
    fieldType string
    fieldValue string
    Complex value. Only one of 'value' or 'field_value' must be specified.
    id number
    The ID of this resource.
    name string
    required boolean
    validationSchema 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
    The ID of this resource.
    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.
    baseField Number
    default String
    description String
    Field description
    fieldType String
    fieldValue String
    Complex value. Only one of 'value' or 'field_value' must be specified.
    id Number
    The ID of this resource.
    name String
    required Boolean
    validationSchema String
    Json schema to validate field_values
    value String
    Basic type value. Only one of 'value' or 'field_value' must be specified.

    DdosProtectionProtocol, DdosProtectionProtocolArgs

    Port string
    Protocols List<string>
    Port string
    Protocols []string
    port String
    protocols List<String>
    port string
    protocols string[]
    port str
    protocols Sequence[str]
    port String
    protocols List<String>

    Package Details

    Repository
    gcorelabs g-core/terraform-provider-gcorelabs
    License
    Notes
    This Pulumi package is based on the gcorelabs Terraform Provider.
    gcorelabs logo
    gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core