1. Packages
  2. OVH
  3. API Docs
  4. Ip
  5. Reverse
OVHCloud v0.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud

ovh.Ip.Reverse

Explore with Pulumi AI

ovh logo
OVHCloud v0.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud

    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) {
            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

    new Reverse(name: string, args: ReverseArgs, opts?: CustomResourceOptions);
    @overload
    def Reverse(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                reverse_ip: Optional[str] = None,
                reverse_value: Optional[str] = None,
                ip: Optional[str] = None)
    @overload
    def Reverse(resource_name: str,
                args: ReverseArgs,
                opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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
    ReverseIp string
    The IP to set the reverse of
    ReverseValue string
    The value of the reverse
    Ip string
    The IP block to which the IP belongs
    ReverseIp string
    The IP to set the reverse of
    ReverseValue string
    The value of the reverse
    ReverseIp String
    The IP to set the reverse of
    ReverseValue String
    The value of the reverse
    ip String
    The IP block to which the IP belongs
    ReverseIp string
    The IP to set the reverse of
    ReverseValue 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
    ReverseIp String
    The IP to set the reverse of
    ReverseValue 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.
    The following state arguments are supported:
    Ip string
    The IP block to which the IP belongs
    ReverseIp string
    The IP to set the reverse of
    ReverseValue string
    The value of the reverse
    Ip string
    The IP block to which the IP belongs
    ReverseIp string
    The IP to set the reverse of
    ReverseValue string
    The value of the reverse
    ReverseIp String
    The IP to set the reverse of
    ReverseValue String
    The value of the reverse
    ip String
    The IP block to which the IP belongs
    ReverseIp string
    The IP to set the reverse of
    ReverseValue 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
    ReverseIp String
    The IP to set the reverse of
    ReverseValue 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'
    

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud