Tailscale

Pulumi Official
Package maintained by Pulumi
v0.7.1 published on Monday, Apr 25, 2022 by Pulumi

DeviceSubnetRoutes

The device_subnet_routes resource allows you to configure subnet routes for your Tailscale devices. See the Tailscale subnets documentation for more information.

Create a DeviceSubnetRoutes Resource

new DeviceSubnetRoutes(name: string, args: DeviceSubnetRoutesArgs, opts?: CustomResourceOptions);
@overload
def DeviceSubnetRoutes(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       device_id: Optional[str] = None,
                       routes: Optional[Sequence[str]] = None)
@overload
def DeviceSubnetRoutes(resource_name: str,
                       args: DeviceSubnetRoutesArgs,
                       opts: Optional[ResourceOptions] = None)
func NewDeviceSubnetRoutes(ctx *Context, name string, args DeviceSubnetRoutesArgs, opts ...ResourceOption) (*DeviceSubnetRoutes, error)
public DeviceSubnetRoutes(string name, DeviceSubnetRoutesArgs args, CustomResourceOptions? opts = null)
public DeviceSubnetRoutes(String name, DeviceSubnetRoutesArgs args)
public DeviceSubnetRoutes(String name, DeviceSubnetRoutesArgs args, CustomResourceOptions options)
type: tailscale:DeviceSubnetRoutes
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DeviceSubnetRoutesArgs
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 DeviceSubnetRoutesArgs
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 DeviceSubnetRoutesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DeviceSubnetRoutesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DeviceSubnetRoutesArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DeviceSubnetRoutes 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 DeviceSubnetRoutes resource accepts the following input properties:

DeviceId string

The device to change enabled subroutes for.

Routes List<string>

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

DeviceId string

The device to change enabled subroutes for.

Routes []string

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

deviceId String

The device to change enabled subroutes for.

routes List

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

deviceId string

The device to change enabled subroutes for.

routes string[]

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

device_id str

The device to change enabled subroutes for.

routes Sequence[str]

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

deviceId String

The device to change enabled subroutes for.

routes List

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

Outputs

All input properties are implicitly available as output properties. Additionally, the DeviceSubnetRoutes 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 an Existing DeviceSubnetRoutes Resource

Get an existing DeviceSubnetRoutes 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?: DeviceSubnetRoutesState, opts?: CustomResourceOptions): DeviceSubnetRoutes
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        device_id: Optional[str] = None,
        routes: Optional[Sequence[str]] = None) -> DeviceSubnetRoutes
func GetDeviceSubnetRoutes(ctx *Context, name string, id IDInput, state *DeviceSubnetRoutesState, opts ...ResourceOption) (*DeviceSubnetRoutes, error)
public static DeviceSubnetRoutes Get(string name, Input<string> id, DeviceSubnetRoutesState? state, CustomResourceOptions? opts = null)
public static DeviceSubnetRoutes get(String name, Output<String> id, DeviceSubnetRoutesState 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:
DeviceId string

The device to change enabled subroutes for.

Routes List<string>

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

DeviceId string

The device to change enabled subroutes for.

Routes []string

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

deviceId String

The device to change enabled subroutes for.

routes List

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

deviceId string

The device to change enabled subroutes for.

routes string[]

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

device_id str

The device to change enabled subroutes for.

routes Sequence[str]

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

deviceId String

The device to change enabled subroutes for.

routes List

The subnet routes that are enabled to be routed by a device. Routes can be enabled without a device advertising them (e.g. for preauth).

Package Details

Repository
https://github.com/pulumi/pulumi-tailscale
License
Apache-2.0
Notes

This Pulumi package is based on the tailscale Terraform Provider.