ovh.Ip.Reverse
Explore with Pulumi AI
Provides a OVHcloud IP reverse.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
// Set the reverse of an IP
const test = new ovh.ip.Reverse("test", {
ip: "192.0.2.0/24",
ReverseIp: "192.0.2.1",
ReverseValue: "example.com",
});
import pulumi
import pulumi_ovh as ovh
# Set the reverse of an IP
test = ovh.ip.Reverse("test",
ip="192.0.2.0/24",
reverse_ip="192.0.2.1",
reverse_value="example.com")
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 {
// Set the reverse of an IP
_, err := Ip.NewReverse(ctx, "test", &Ip.ReverseArgs{
Ip: pulumi.String("192.0.2.0/24"),
ReverseIp: pulumi.String("192.0.2.1"),
ReverseValue: pulumi.String("example.com"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
// Set the reverse of an IP
var test = new Ovh.Ip.Reverse("test", new()
{
Ip = "192.0.2.0/24",
ReverseIp = "192.0.2.1",
ReverseValue = "example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Ip.Reverse;
import com.pulumi.ovh.Ip.ReverseArgs;
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) {
// Set the reverse of an IP
var test = new Reverse("test", ReverseArgs.builder()
.ip("192.0.2.0/24")
.ReverseIp("192.0.2.1")
.ReverseValue("example.com")
.build());
}
}
resources:
# Set the reverse of an IP
test:
type: ovh:Ip:Reverse
properties:
ip: 192.0.2.0/24
ReverseIp: 192.0.2.1
ReverseValue: example.com
Create Reverse Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Reverse(name: string, args: ReverseArgs, opts?: CustomResourceOptions);
@overload
def Reverse(resource_name: str,
args: ReverseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Reverse(resource_name: str,
opts: Optional[ResourceOptions] = None,
reverse_ip: Optional[str] = None,
reverse_value: Optional[str] = None,
ip: Optional[str] = None)
func NewReverse(ctx *Context, name string, args ReverseArgs, opts ...ResourceOption) (*Reverse, error)
public Reverse(string name, ReverseArgs args, CustomResourceOptions? opts = null)
public Reverse(String name, ReverseArgs args)
public Reverse(String name, ReverseArgs args, CustomResourceOptions options)
type: ovh:Ip:Reverse
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 ReverseArgs
- 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 ReverseArgs
- 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 ReverseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReverseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReverseArgs
- 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 reverseResource = new Ovh.Ip.Reverse("reverseResource", new()
{
ReverseIp = "string",
ReverseValue = "string",
Ip = "string",
});
example, err := Ip.NewReverse(ctx, "reverseResource", &Ip.ReverseArgs{
ReverseIp: pulumi.String("string"),
ReverseValue: pulumi.String("string"),
Ip: pulumi.String("string"),
})
var reverseResource = new Reverse("reverseResource", ReverseArgs.builder()
.ReverseIp("string")
.ReverseValue("string")
.ip("string")
.build());
reverse_resource = ovh.ip.Reverse("reverseResource",
reverse_ip="string",
reverse_value="string",
ip="string")
const reverseResource = new ovh.ip.Reverse("reverseResource", {
ReverseIp: "string",
ReverseValue: "string",
ip: "string",
});
type: ovh:Ip:Reverse
properties:
ReverseIp: string
ReverseValue: string
ip: string
Reverse 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 Reverse resource accepts the following input properties:
- Ip string
- The IP block to which the IP belongs
- Reverse
Ip string - The IP to set the reverse of
- Reverse
Value string - The value of the reverse
- Ip string
- The IP block to which the IP belongs
- Reverse
Ip string - The IP to set the reverse of
- Reverse
Value string - The value of the reverse
- Reverse
Ip String - The IP to set the reverse of
- Reverse
Value String - The value of the reverse
- ip String
- The IP block to which the IP belongs
- Reverse
Ip string - The IP to set the reverse of
- Reverse
Value string - The value of the reverse
- ip string
- The IP block to which the IP belongs
- ip str
- The IP block to which the IP belongs
- reverse_
ip str - The IP to set the reverse of
- reverse_
value str - The value of the reverse
- Reverse
Ip String - The IP to set the reverse of
- Reverse
Value String - The value of the reverse
- ip String
- The IP block to which the IP belongs
Outputs
All input properties are implicitly available as output properties. Additionally, the Reverse resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Reverse Resource
Get an existing Reverse 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?: ReverseState, opts?: CustomResourceOptions): Reverse
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
reverse_ip: Optional[str] = None,
reverse_value: Optional[str] = None,
ip: Optional[str] = None) -> Reverse
func GetReverse(ctx *Context, name string, id IDInput, state *ReverseState, opts ...ResourceOption) (*Reverse, error)
public static Reverse Get(string name, Input<string> id, ReverseState? state, CustomResourceOptions? opts = null)
public static Reverse get(String name, Output<String> id, ReverseState 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.
- Ip string
- The IP block to which the IP belongs
- Reverse
Ip string - The IP to set the reverse of
- Reverse
Value string - The value of the reverse
- Ip string
- The IP block to which the IP belongs
- Reverse
Ip string - The IP to set the reverse of
- Reverse
Value string - The value of the reverse
- Reverse
Ip String - The IP to set the reverse of
- Reverse
Value String - The value of the reverse
- ip String
- The IP block to which the IP belongs
- Reverse
Ip string - The IP to set the reverse of
- Reverse
Value string - The value of the reverse
- ip string
- The IP block to which the IP belongs
- ip str
- The IP block to which the IP belongs
- reverse_
ip str - The IP to set the reverse of
- reverse_
value str - The value of the reverse
- Reverse
Ip String - The IP to set the reverse of
- Reverse
Value String - The value of the reverse
- ip String
- The IP block to which the IP belongs
Import
The resource can be imported using the ip
, ip_reverse
of the address, separated by “|” E.g.,
bash
$ pulumi import ovh:Ip/reverse:Reverse my_reverse '2001:0db8:c0ff:ee::/64|2001:0db8:c0ff:ee::42'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.