ovh.VrackIpv6RoutedSubrange
Explore with Pulumi AI
Route a subrange of your IP v6 block into your vrack.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const vrackRoutedSubrange = new ovh.VrackIpv6RoutedSubrange("vrack_routed_subrange", {
serviceName: "<vRack service name>",
block: "<ipv6 block>",
routedSubrange: "<routed subrange>",
nexthop: "<nexthop>",
});
import pulumi
import pulumi_ovh as ovh
vrack_routed_subrange = ovh.VrackIpv6RoutedSubrange("vrack_routed_subrange",
service_name="<vRack service name>",
block="<ipv6 block>",
routed_subrange="<routed subrange>",
nexthop="<nexthop>")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ovh.NewVrackIpv6RoutedSubrange(ctx, "vrack_routed_subrange", &ovh.VrackIpv6RoutedSubrangeArgs{
ServiceName: pulumi.String("<vRack service name>"),
Block: pulumi.String("<ipv6 block>"),
RoutedSubrange: pulumi.String("<routed subrange>"),
Nexthop: pulumi.String("<nexthop>"),
})
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 vrackRoutedSubrange = new Ovh.VrackIpv6RoutedSubrange("vrack_routed_subrange", new()
{
ServiceName = "<vRack service name>",
Block = "<ipv6 block>",
RoutedSubrange = "<routed subrange>",
Nexthop = "<nexthop>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.VrackIpv6RoutedSubrange;
import com.ovhcloud.pulumi.ovh.VrackIpv6RoutedSubrangeArgs;
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 vrackRoutedSubrange = new VrackIpv6RoutedSubrange("vrackRoutedSubrange", VrackIpv6RoutedSubrangeArgs.builder()
.serviceName("<vRack service name>")
.block("<ipv6 block>")
.routedSubrange("<routed subrange>")
.nexthop("<nexthop>")
.build());
}
}
resources:
vrackRoutedSubrange:
type: ovh:VrackIpv6RoutedSubrange
name: vrack_routed_subrange
properties:
serviceName: <vRack service name>
block: <ipv6 block>
routedSubrange: <routed subrange>
nexthop: <nexthop>
Create VrackIpv6RoutedSubrange Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VrackIpv6RoutedSubrange(name: string, args: VrackIpv6RoutedSubrangeArgs, opts?: CustomResourceOptions);
@overload
def VrackIpv6RoutedSubrange(resource_name: str,
args: VrackIpv6RoutedSubrangeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VrackIpv6RoutedSubrange(resource_name: str,
opts: Optional[ResourceOptions] = None,
block: Optional[str] = None,
nexthop: Optional[str] = None,
routed_subrange: Optional[str] = None,
service_name: Optional[str] = None)
func NewVrackIpv6RoutedSubrange(ctx *Context, name string, args VrackIpv6RoutedSubrangeArgs, opts ...ResourceOption) (*VrackIpv6RoutedSubrange, error)
public VrackIpv6RoutedSubrange(string name, VrackIpv6RoutedSubrangeArgs args, CustomResourceOptions? opts = null)
public VrackIpv6RoutedSubrange(String name, VrackIpv6RoutedSubrangeArgs args)
public VrackIpv6RoutedSubrange(String name, VrackIpv6RoutedSubrangeArgs args, CustomResourceOptions options)
type: ovh:VrackIpv6RoutedSubrange
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 VrackIpv6RoutedSubrangeArgs
- 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 VrackIpv6RoutedSubrangeArgs
- 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 VrackIpv6RoutedSubrangeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VrackIpv6RoutedSubrangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VrackIpv6RoutedSubrangeArgs
- 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 vrackIpv6RoutedSubrangeResource = new Ovh.VrackIpv6RoutedSubrange("vrackIpv6RoutedSubrangeResource", new()
{
Block = "string",
Nexthop = "string",
RoutedSubrange = "string",
ServiceName = "string",
});
example, err := ovh.NewVrackIpv6RoutedSubrange(ctx, "vrackIpv6RoutedSubrangeResource", &ovh.VrackIpv6RoutedSubrangeArgs{
Block: pulumi.String("string"),
Nexthop: pulumi.String("string"),
RoutedSubrange: pulumi.String("string"),
ServiceName: pulumi.String("string"),
})
var vrackIpv6RoutedSubrangeResource = new VrackIpv6RoutedSubrange("vrackIpv6RoutedSubrangeResource", VrackIpv6RoutedSubrangeArgs.builder()
.block("string")
.nexthop("string")
.routedSubrange("string")
.serviceName("string")
.build());
vrack_ipv6_routed_subrange_resource = ovh.VrackIpv6RoutedSubrange("vrackIpv6RoutedSubrangeResource",
block="string",
nexthop="string",
routed_subrange="string",
service_name="string")
const vrackIpv6RoutedSubrangeResource = new ovh.VrackIpv6RoutedSubrange("vrackIpv6RoutedSubrangeResource", {
block: "string",
nexthop: "string",
routedSubrange: "string",
serviceName: "string",
});
type: ovh:VrackIpv6RoutedSubrange
properties:
block: string
nexthop: string
routedSubrange: string
serviceName: string
VrackIpv6RoutedSubrange 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 VrackIpv6RoutedSubrange resource accepts the following input properties:
- Block string
- Your IPv6 block.
- Nexthop string
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- Routed
Subrange string - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- Service
Name string - The internal name of your vrack
- Block string
- Your IPv6 block.
- Nexthop string
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- Routed
Subrange string - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- Service
Name string - The internal name of your vrack
- block String
- Your IPv6 block.
- nexthop String
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- routed
Subrange String - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- service
Name String - The internal name of your vrack
- block string
- Your IPv6 block.
- nexthop string
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- routed
Subrange string - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- service
Name string - The internal name of your vrack
- block str
- Your IPv6 block.
- nexthop str
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- routed_
subrange str - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- service_
name str - The internal name of your vrack
- block String
- Your IPv6 block.
- nexthop String
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- routed
Subrange String - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- service
Name String - The internal name of your vrack
Outputs
All input properties are implicitly available as output properties. Additionally, the VrackIpv6RoutedSubrange 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 VrackIpv6RoutedSubrange Resource
Get an existing VrackIpv6RoutedSubrange 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?: VrackIpv6RoutedSubrangeState, opts?: CustomResourceOptions): VrackIpv6RoutedSubrange
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
block: Optional[str] = None,
nexthop: Optional[str] = None,
routed_subrange: Optional[str] = None,
service_name: Optional[str] = None) -> VrackIpv6RoutedSubrange
func GetVrackIpv6RoutedSubrange(ctx *Context, name string, id IDInput, state *VrackIpv6RoutedSubrangeState, opts ...ResourceOption) (*VrackIpv6RoutedSubrange, error)
public static VrackIpv6RoutedSubrange Get(string name, Input<string> id, VrackIpv6RoutedSubrangeState? state, CustomResourceOptions? opts = null)
public static VrackIpv6RoutedSubrange get(String name, Output<String> id, VrackIpv6RoutedSubrangeState state, CustomResourceOptions options)
resources: _: type: ovh:VrackIpv6RoutedSubrange 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.
- Block string
- Your IPv6 block.
- Nexthop string
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- Routed
Subrange string - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- Service
Name string - The internal name of your vrack
- Block string
- Your IPv6 block.
- Nexthop string
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- Routed
Subrange string - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- Service
Name string - The internal name of your vrack
- block String
- Your IPv6 block.
- nexthop String
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- routed
Subrange String - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- service
Name String - The internal name of your vrack
- block string
- Your IPv6 block.
- nexthop string
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- routed
Subrange string - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- service
Name string - The internal name of your vrack
- block str
- Your IPv6 block.
- nexthop str
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- routed_
subrange str - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- service_
name str - The internal name of your vrack
- block String
- Your IPv6 block.
- nexthop String
- Next-hop IPv6 address (e.g., 2001:41d0:1:1994::1)
- routed
Subrange String - The subrange to route into your vRack, IPv6 CIDR notation (e.g., 2001:41d0::/128)
- service
Name String - The internal name of your vrack
Import
Routing of an subrange into your vRack can be imported using the service_name
(vRack identifier), the block
(IPv6 block) and the routed_subrange (IPv6 block)
, separated by “,” E.g.,
bash
$ pulumi import ovh:index/vrackIpv6RoutedSubrange:VrackIpv6RoutedSubrange myroutedsubrange "<service_name>,<block>,<routed_subrange>"
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.