Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien
vultr.getReverseIpv4
Explore with Pulumi AI
Get information about a Vultr Reverse IPv4.
Example Usage
Get the information for an IPv4 reverse DNS record by reverse
:
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@pulumi/vultr";
const myReverseIpv4 = vultr.getReverseIpv4({
filters: [{
name: "reverse",
values: ["host.example.com"],
}],
});
import pulumi
import pulumi_vultr as vultr
my_reverse_ipv4 = vultr.get_reverse_ipv4(filters=[vultr.GetReverseIpv4FilterArgs(
name="reverse",
values=["host.example.com"],
)])
package main
import (
"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vultr.LookupReverseIpv4(ctx, &vultr.LookupReverseIpv4Args{
Filters: []vultr.GetReverseIpv4Filter{
{
Name: "reverse",
Values: []string{
"host.example.com",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vultr = Pulumi.Vultr;
return await Deployment.RunAsync(() =>
{
var myReverseIpv4 = Vultr.GetReverseIpv4.Invoke(new()
{
Filters = new[]
{
new Vultr.Inputs.GetReverseIpv4FilterInputArgs
{
Name = "reverse",
Values = new[]
{
"host.example.com",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vultr.VultrFunctions;
import com.pulumi.vultr.inputs.GetReverseIpv4Args;
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) {
final var myReverseIpv4 = VultrFunctions.getReverseIpv4(GetReverseIpv4Args.builder()
.filters(GetReverseIpv4FilterArgs.builder()
.name("reverse")
.values("host.example.com")
.build())
.build());
}
}
variables:
myReverseIpv4:
fn::invoke:
Function: vultr:getReverseIpv4
Arguments:
filters:
- name: reverse
values:
- host.example.com
Using getReverseIpv4
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReverseIpv4(args: GetReverseIpv4Args, opts?: InvokeOptions): Promise<GetReverseIpv4Result>
function getReverseIpv4Output(args: GetReverseIpv4OutputArgs, opts?: InvokeOptions): Output<GetReverseIpv4Result>
def get_reverse_ipv4(filters: Optional[Sequence[GetReverseIpv4Filter]] = None,
opts: Optional[InvokeOptions] = None) -> GetReverseIpv4Result
def get_reverse_ipv4_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetReverseIpv4FilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReverseIpv4Result]
func LookupReverseIpv4(ctx *Context, args *LookupReverseIpv4Args, opts ...InvokeOption) (*LookupReverseIpv4Result, error)
func LookupReverseIpv4Output(ctx *Context, args *LookupReverseIpv4OutputArgs, opts ...InvokeOption) LookupReverseIpv4ResultOutput
> Note: This function is named LookupReverseIpv4
in the Go SDK.
public static class GetReverseIpv4
{
public static Task<GetReverseIpv4Result> InvokeAsync(GetReverseIpv4Args args, InvokeOptions? opts = null)
public static Output<GetReverseIpv4Result> Invoke(GetReverseIpv4InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReverseIpv4Result> getReverseIpv4(GetReverseIpv4Args args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vultr:index/getReverseIpv4:getReverseIpv4
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<ediri.
Vultr. Inputs. Get Reverse Ipv4Filter> - Query parameters for finding IPv4 reverse DNS records.
- Filters
[]Get
Reverse Ipv4Filter - Query parameters for finding IPv4 reverse DNS records.
- filters
List<Get
Reverse Ipv4Filter> - Query parameters for finding IPv4 reverse DNS records.
- filters
Get
Reverse Ipv4Filter[] - Query parameters for finding IPv4 reverse DNS records.
- filters
Sequence[Get
Reverse Ipv4Filter] - Query parameters for finding IPv4 reverse DNS records.
- filters List<Property Map>
- Query parameters for finding IPv4 reverse DNS records.
getReverseIpv4 Result
The following output properties are available:
- Gateway string
- The gateway IP address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - The ID of the instance the IPv4 reverse DNS record was set for.
- Ip string
- The IPv4 address in canonical format used in the reverse DNS record.
- Netmask string
- The IPv4 netmask in dot-decimal notation.
- Reverse string
- The hostname used in the IPv4 reverse DNS record.
- Filters
List<ediri.
Vultr. Outputs. Get Reverse Ipv4Filter>
- Gateway string
- The gateway IP address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - The ID of the instance the IPv4 reverse DNS record was set for.
- Ip string
- The IPv4 address in canonical format used in the reverse DNS record.
- Netmask string
- The IPv4 netmask in dot-decimal notation.
- Reverse string
- The hostname used in the IPv4 reverse DNS record.
- Filters
[]Get
Reverse Ipv4Filter
- gateway String
- The gateway IP address.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - The ID of the instance the IPv4 reverse DNS record was set for.
- ip String
- The IPv4 address in canonical format used in the reverse DNS record.
- netmask String
- The IPv4 netmask in dot-decimal notation.
- reverse String
- The hostname used in the IPv4 reverse DNS record.
- filters
List<Get
Reverse Ipv4Filter>
- gateway string
- The gateway IP address.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - The ID of the instance the IPv4 reverse DNS record was set for.
- ip string
- The IPv4 address in canonical format used in the reverse DNS record.
- netmask string
- The IPv4 netmask in dot-decimal notation.
- reverse string
- The hostname used in the IPv4 reverse DNS record.
- filters
Get
Reverse Ipv4Filter[]
- gateway str
- The gateway IP address.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - The ID of the instance the IPv4 reverse DNS record was set for.
- ip str
- The IPv4 address in canonical format used in the reverse DNS record.
- netmask str
- The IPv4 netmask in dot-decimal notation.
- reverse str
- The hostname used in the IPv4 reverse DNS record.
- filters
Sequence[Get
Reverse Ipv4Filter]
- gateway String
- The gateway IP address.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - The ID of the instance the IPv4 reverse DNS record was set for.
- ip String
- The IPv4 address in canonical format used in the reverse DNS record.
- netmask String
- The IPv4 netmask in dot-decimal notation.
- reverse String
- The hostname used in the IPv4 reverse DNS record.
- filters List<Property Map>
Supporting Types
GetReverseIpv4Filter
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultr
Terraform Provider.