OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud
ovh.Ip.Mitigation
Explore with Pulumi AI
Use this resource to manage an IP permanent mitigation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const mitigation = new ovh.ip.Mitigation("mitigation", {
ip: "XXXXXX",
ipOnMitigation: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
mitigation = ovh.ip.Mitigation("mitigation",
ip="XXXXXX",
ip_on_mitigation="XXXXXX")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/Ip"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Ip.NewMitigation(ctx, "mitigation", &Ip.MitigationArgs{
Ip: pulumi.String("XXXXXX"),
IpOnMitigation: pulumi.String("XXXXXX"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var mitigation = new Ovh.Ip.Mitigation("mitigation", new()
{
Ip = "XXXXXX",
IpOnMitigation = "XXXXXX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Ip.Mitigation;
import com.pulumi.ovh.Ip.MitigationArgs;
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 mitigation = new Mitigation("mitigation", MitigationArgs.builder()
.ip("XXXXXX")
.ipOnMitigation("XXXXXX")
.build());
}
}
resources:
mitigation:
type: ovh:Ip:Mitigation
properties:
ip: XXXXXX
ipOnMitigation: XXXXXX
Create Mitigation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Mitigation(name: string, args: MitigationArgs, opts?: CustomResourceOptions);
@overload
def Mitigation(resource_name: str,
args: MitigationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Mitigation(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip: Optional[str] = None,
ip_on_mitigation: Optional[str] = None,
permanent: Optional[bool] = None)
func NewMitigation(ctx *Context, name string, args MitigationArgs, opts ...ResourceOption) (*Mitigation, error)
public Mitigation(string name, MitigationArgs args, CustomResourceOptions? opts = null)
public Mitigation(String name, MitigationArgs args)
public Mitigation(String name, MitigationArgs args, CustomResourceOptions options)
type: ovh:Ip:Mitigation
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 MitigationArgs
- 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 MitigationArgs
- 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 MitigationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MitigationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MitigationArgs
- 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 mitigationResource = new Ovh.Ip.Mitigation("mitigationResource", new()
{
Ip = "string",
IpOnMitigation = "string",
Permanent = false,
});
example, err := Ip.NewMitigation(ctx, "mitigationResource", &Ip.MitigationArgs{
Ip: pulumi.String("string"),
IpOnMitigation: pulumi.String("string"),
Permanent: pulumi.Bool(false),
})
var mitigationResource = new Mitigation("mitigationResource", MitigationArgs.builder()
.ip("string")
.ipOnMitigation("string")
.permanent(false)
.build());
mitigation_resource = ovh.ip.Mitigation("mitigationResource",
ip="string",
ip_on_mitigation="string",
permanent=False)
const mitigationResource = new ovh.ip.Mitigation("mitigationResource", {
ip: "string",
ipOnMitigation: "string",
permanent: false,
});
type: ovh:Ip:Mitigation
properties:
ip: string
ipOnMitigation: string
permanent: false
Mitigation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Mitigation resource accepts the following input properties:
- Ip string
- The IP or the CIDR
- Ip
On stringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- Permanent bool
- Set on true if your ip is on permanent mitigation
- Ip string
- The IP or the CIDR
- Ip
On stringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- Permanent bool
- Set on true if your ip is on permanent mitigation
- ip String
- The IP or the CIDR
- ip
On StringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- permanent Boolean
- Set on true if your ip is on permanent mitigation
- ip string
- The IP or the CIDR
- ip
On stringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- permanent boolean
- Set on true if your ip is on permanent mitigation
- ip str
- The IP or the CIDR
- ip_
on_ strmitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- permanent bool
- Set on true if your ip is on permanent mitigation
- ip String
- The IP or the CIDR
- ip
On StringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- permanent Boolean
- Set on true if your ip is on permanent mitigation
Outputs
All input properties are implicitly available as output properties. Additionally, the Mitigation resource produces the following output properties:
Look up Existing Mitigation Resource
Get an existing Mitigation 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?: MitigationState, opts?: CustomResourceOptions): Mitigation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto: Optional[bool] = None,
ip: Optional[str] = None,
ip_on_mitigation: Optional[str] = None,
permanent: Optional[bool] = None,
state: Optional[str] = None) -> Mitigation
func GetMitigation(ctx *Context, name string, id IDInput, state *MitigationState, opts ...ResourceOption) (*Mitigation, error)
public static Mitigation Get(string name, Input<string> id, MitigationState? state, CustomResourceOptions? opts = null)
public static Mitigation get(String name, Output<String> id, MitigationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Auto bool
- Set on true if the IP is on auto-mitigation
- Ip string
- The IP or the CIDR
- Ip
On stringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- Permanent bool
- Set on true if your ip is on permanent mitigation
- State string
- Current state of the IP on mitigation
- Auto bool
- Set on true if the IP is on auto-mitigation
- Ip string
- The IP or the CIDR
- Ip
On stringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- Permanent bool
- Set on true if your ip is on permanent mitigation
- State string
- Current state of the IP on mitigation
- auto Boolean
- Set on true if the IP is on auto-mitigation
- ip String
- The IP or the CIDR
- ip
On StringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- permanent Boolean
- Set on true if your ip is on permanent mitigation
- state String
- Current state of the IP on mitigation
- auto boolean
- Set on true if the IP is on auto-mitigation
- ip string
- The IP or the CIDR
- ip
On stringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- permanent boolean
- Set on true if your ip is on permanent mitigation
- state string
- Current state of the IP on mitigation
- auto bool
- Set on true if the IP is on auto-mitigation
- ip str
- The IP or the CIDR
- ip_
on_ strmitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- permanent bool
- Set on true if your ip is on permanent mitigation
- state str
- Current state of the IP on mitigation
- auto Boolean
- Set on true if the IP is on auto-mitigation
- ip String
- The IP or the CIDR
- ip
On StringMitigation - IPv4 address
permanent
- Set on true if the IP is on permanent mitigation
- permanent Boolean
- Set on true if your ip is on permanent mitigation
- state String
- Current state of the IP on mitigation
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.