From 293b378ec265eef24e536c45bb087f158a87c96c Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Wed, 9 Oct 2024 01:29:10 -0700 Subject: [PATCH] Upgrade terraform-provider-tailscale to v0.17.2 (#527) This PR was generated via `$ upgrade-provider pulumi/pulumi-tailscale --kind=all`. --- - Upgrading terraform-provider-tailscale from 0.17.1 to 0.17.2. Fixes #526 --- .../cmd/pulumi-resource-tailscale/schema.json | 14 +++++++------- provider/go.mod | 2 +- provider/go.sum | 4 ++-- sdk/dotnet/DeviceKey.cs | 8 ++++++++ sdk/dotnet/DeviceSubnetRoutes.cs | 8 ++++++++ sdk/dotnet/DeviceTags.cs | 8 ++++++++ sdk/dotnet/DnsNameservers.cs | 8 ++++++++ sdk/dotnet/DnsSearchPaths.cs | 8 ++++++++ sdk/dotnet/LogstreamConfiguration.cs | 8 ++++++++ sdk/dotnet/PostureIntegration.cs | 8 ++++++++ sdk/go/tailscale/deviceKey.go | 8 ++++++++ sdk/go/tailscale/deviceSubnetRoutes.go | 8 ++++++++ sdk/go/tailscale/deviceTags.go | 8 ++++++++ sdk/go/tailscale/dnsNameservers.go | 8 ++++++++ sdk/go/tailscale/dnsSearchPaths.go | 8 ++++++++ sdk/go/tailscale/logstreamConfiguration.go | 8 ++++++++ sdk/go/tailscale/postureIntegration.go | 8 ++++++++ .../java/com/pulumi/tailscale/DeviceKey.java | 8 ++++++++ .../com/pulumi/tailscale/DeviceSubnetRoutes.java | 8 ++++++++ .../java/com/pulumi/tailscale/DeviceTags.java | 8 ++++++++ .../com/pulumi/tailscale/DnsNameservers.java | 8 ++++++++ .../com/pulumi/tailscale/DnsSearchPaths.java | 8 ++++++++ .../pulumi/tailscale/LogstreamConfiguration.java | 8 ++++++++ .../com/pulumi/tailscale/PostureIntegration.java | 8 ++++++++ sdk/nodejs/deviceKey.ts | 8 ++++++++ sdk/nodejs/deviceSubnetRoutes.ts | 8 ++++++++ sdk/nodejs/deviceTags.ts | 8 ++++++++ sdk/nodejs/dnsNameservers.ts | 8 ++++++++ sdk/nodejs/dnsSearchPaths.ts | 8 ++++++++ sdk/nodejs/logstreamConfiguration.ts | 8 ++++++++ sdk/nodejs/postureIntegration.ts | 8 ++++++++ sdk/python/pulumi_tailscale/device_key.py | 16 ++++++++++++++++ .../pulumi_tailscale/device_subnet_routes.py | 16 ++++++++++++++++ sdk/python/pulumi_tailscale/device_tags.py | 16 ++++++++++++++++ sdk/python/pulumi_tailscale/dns_nameservers.py | 16 ++++++++++++++++ sdk/python/pulumi_tailscale/dns_search_paths.py | 16 ++++++++++++++++ .../pulumi_tailscale/logstream_configuration.py | 16 ++++++++++++++++ .../pulumi_tailscale/posture_integration.py | 16 ++++++++++++++++ 38 files changed, 346 insertions(+), 10 deletions(-) diff --git a/provider/cmd/pulumi-resource-tailscale/schema.json b/provider/cmd/pulumi-resource-tailscale/schema.json index dbf436d8..f5ba1a58 100644 --- a/provider/cmd/pulumi-resource-tailscale/schema.json +++ b/provider/cmd/pulumi-resource-tailscale/schema.json @@ -479,7 +479,7 @@ } }, "tailscale:index/deviceKey:DeviceKey": { - "description": "The device_key resource allows you to update the properties of a device's key\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst exampleDevice = tailscale.getDevice({\n name: \"device.example.com\",\n});\nconst exampleKey = new tailscale.DeviceKey(\"example_key\", {\n deviceId: exampleDevice.then(exampleDevice =\u003e exampleDevice.id),\n keyExpiryDisabled: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nexample_device = tailscale.get_device(name=\"device.example.com\")\nexample_key = tailscale.DeviceKey(\"example_key\",\n device_id=example_device.id,\n key_expiry_disabled=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDevice = Tailscale.GetDevice.Invoke(new()\n {\n Name = \"device.example.com\",\n });\n\n var exampleKey = new Tailscale.DeviceKey(\"example_key\", new()\n {\n DeviceId = exampleDevice.Apply(getDeviceResult =\u003e getDeviceResult.Id),\n KeyExpiryDisabled = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDevice, err := tailscale.GetDevice(ctx, \u0026tailscale.GetDeviceArgs{\n\t\t\tName: pulumi.StringRef(\"device.example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceKey(ctx, \"example_key\", \u0026tailscale.DeviceKeyArgs{\n\t\t\tDeviceId: pulumi.String(exampleDevice.Id),\n\t\t\tKeyExpiryDisabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.TailscaleFunctions;\nimport com.pulumi.tailscale.inputs.GetDeviceArgs;\nimport com.pulumi.tailscale.DeviceKey;\nimport com.pulumi.tailscale.DeviceKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDevice = TailscaleFunctions.getDevice(GetDeviceArgs.builder()\n .name(\"device.example.com\")\n .build());\n\n var exampleKey = new DeviceKey(\"exampleKey\", DeviceKeyArgs.builder()\n .deviceId(exampleDevice.applyValue(getDeviceResult -\u003e getDeviceResult.id()))\n .keyExpiryDisabled(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: tailscale:DeviceKey\n name: example_key\n properties:\n deviceId: ${exampleDevice.id}\n keyExpiryDisabled: true\nvariables:\n exampleDevice:\n fn::invoke:\n Function: tailscale:getDevice\n Arguments:\n name: device.example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The device_key resource allows you to update the properties of a device's key\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst exampleDevice = tailscale.getDevice({\n name: \"device.example.com\",\n});\nconst exampleKey = new tailscale.DeviceKey(\"example_key\", {\n deviceId: exampleDevice.then(exampleDevice =\u003e exampleDevice.id),\n keyExpiryDisabled: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nexample_device = tailscale.get_device(name=\"device.example.com\")\nexample_key = tailscale.DeviceKey(\"example_key\",\n device_id=example_device.id,\n key_expiry_disabled=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDevice = Tailscale.GetDevice.Invoke(new()\n {\n Name = \"device.example.com\",\n });\n\n var exampleKey = new Tailscale.DeviceKey(\"example_key\", new()\n {\n DeviceId = exampleDevice.Apply(getDeviceResult =\u003e getDeviceResult.Id),\n KeyExpiryDisabled = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDevice, err := tailscale.GetDevice(ctx, \u0026tailscale.GetDeviceArgs{\n\t\t\tName: pulumi.StringRef(\"device.example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceKey(ctx, \"example_key\", \u0026tailscale.DeviceKeyArgs{\n\t\t\tDeviceId: pulumi.String(exampleDevice.Id),\n\t\t\tKeyExpiryDisabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.TailscaleFunctions;\nimport com.pulumi.tailscale.inputs.GetDeviceArgs;\nimport com.pulumi.tailscale.DeviceKey;\nimport com.pulumi.tailscale.DeviceKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDevice = TailscaleFunctions.getDevice(GetDeviceArgs.builder()\n .name(\"device.example.com\")\n .build());\n\n var exampleKey = new DeviceKey(\"exampleKey\", DeviceKeyArgs.builder()\n .deviceId(exampleDevice.applyValue(getDeviceResult -\u003e getDeviceResult.id()))\n .keyExpiryDisabled(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: tailscale:DeviceKey\n name: example_key\n properties:\n deviceId: ${exampleDevice.id}\n keyExpiryDisabled: true\nvariables:\n exampleDevice:\n fn::invoke:\n Function: tailscale:getDevice\n Arguments:\n name: device.example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nDevice key can be imported using the device id, e.g.,\n\n```sh\n$ pulumi import tailscale:index/deviceKey:DeviceKey sample 123456789\n```\n\n", "properties": { "deviceId": { "type": "string", @@ -522,7 +522,7 @@ } }, "tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleDevice = tailscale.getDevice({\n name: \"device.example.com\",\n});\nconst sampleRoutes = new tailscale.DeviceSubnetRoutes(\"sample_routes\", {\n deviceId: sampleDevice.then(sampleDevice =\u003e sampleDevice.id),\n routes: [\n \"10.0.1.0/24\",\n \"1.2.0.0/16\",\n \"2.0.0.0/24\",\n ],\n});\nconst sampleExitNode = new tailscale.DeviceSubnetRoutes(\"sample_exit_node\", {\n deviceId: sampleDevice.then(sampleDevice =\u003e sampleDevice.id),\n routes: [\n \"0.0.0.0/0\",\n \"::/0\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_device = tailscale.get_device(name=\"device.example.com\")\nsample_routes = tailscale.DeviceSubnetRoutes(\"sample_routes\",\n device_id=sample_device.id,\n routes=[\n \"10.0.1.0/24\",\n \"1.2.0.0/16\",\n \"2.0.0.0/24\",\n ])\nsample_exit_node = tailscale.DeviceSubnetRoutes(\"sample_exit_node\",\n device_id=sample_device.id,\n routes=[\n \"0.0.0.0/0\",\n \"::/0\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleDevice = Tailscale.GetDevice.Invoke(new()\n {\n Name = \"device.example.com\",\n });\n\n var sampleRoutes = new Tailscale.DeviceSubnetRoutes(\"sample_routes\", new()\n {\n DeviceId = sampleDevice.Apply(getDeviceResult =\u003e getDeviceResult.Id),\n Routes = new[]\n {\n \"10.0.1.0/24\",\n \"1.2.0.0/16\",\n \"2.0.0.0/24\",\n },\n });\n\n var sampleExitNode = new Tailscale.DeviceSubnetRoutes(\"sample_exit_node\", new()\n {\n DeviceId = sampleDevice.Apply(getDeviceResult =\u003e getDeviceResult.Id),\n Routes = new[]\n {\n \"0.0.0.0/0\",\n \"::/0\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsampleDevice, err := tailscale.GetDevice(ctx, \u0026tailscale.GetDeviceArgs{\n\t\t\tName: pulumi.StringRef(\"device.example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceSubnetRoutes(ctx, \"sample_routes\", \u0026tailscale.DeviceSubnetRoutesArgs{\n\t\t\tDeviceId: pulumi.String(sampleDevice.Id),\n\t\t\tRoutes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"10.0.1.0/24\"),\n\t\t\t\tpulumi.String(\"1.2.0.0/16\"),\n\t\t\t\tpulumi.String(\"2.0.0.0/24\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceSubnetRoutes(ctx, \"sample_exit_node\", \u0026tailscale.DeviceSubnetRoutesArgs{\n\t\t\tDeviceId: pulumi.String(sampleDevice.Id),\n\t\t\tRoutes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"0.0.0.0/0\"),\n\t\t\t\tpulumi.String(\"::/0\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.TailscaleFunctions;\nimport com.pulumi.tailscale.inputs.GetDeviceArgs;\nimport com.pulumi.tailscale.DeviceSubnetRoutes;\nimport com.pulumi.tailscale.DeviceSubnetRoutesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var sampleDevice = TailscaleFunctions.getDevice(GetDeviceArgs.builder()\n .name(\"device.example.com\")\n .build());\n\n var sampleRoutes = new DeviceSubnetRoutes(\"sampleRoutes\", DeviceSubnetRoutesArgs.builder()\n .deviceId(sampleDevice.applyValue(getDeviceResult -\u003e getDeviceResult.id()))\n .routes( \n \"10.0.1.0/24\",\n \"1.2.0.0/16\",\n \"2.0.0.0/24\")\n .build());\n\n var sampleExitNode = new DeviceSubnetRoutes(\"sampleExitNode\", DeviceSubnetRoutesArgs.builder()\n .deviceId(sampleDevice.applyValue(getDeviceResult -\u003e getDeviceResult.id()))\n .routes( \n \"0.0.0.0/0\",\n \"::/0\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleRoutes:\n type: tailscale:DeviceSubnetRoutes\n name: sample_routes\n properties:\n deviceId: ${sampleDevice.id}\n routes:\n - 10.0.1.0/24\n - 1.2.0.0/16\n - 2.0.0.0/24\n sampleExitNode:\n type: tailscale:DeviceSubnetRoutes\n name: sample_exit_node\n properties:\n deviceId: ${sampleDevice.id}\n routes:\n - 0.0.0.0/0\n - ::/0\nvariables:\n sampleDevice:\n fn::invoke:\n Function: tailscale:getDevice\n Arguments:\n name: device.example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleDevice = tailscale.getDevice({\n name: \"device.example.com\",\n});\nconst sampleRoutes = new tailscale.DeviceSubnetRoutes(\"sample_routes\", {\n deviceId: sampleDevice.then(sampleDevice =\u003e sampleDevice.id),\n routes: [\n \"10.0.1.0/24\",\n \"1.2.0.0/16\",\n \"2.0.0.0/24\",\n ],\n});\nconst sampleExitNode = new tailscale.DeviceSubnetRoutes(\"sample_exit_node\", {\n deviceId: sampleDevice.then(sampleDevice =\u003e sampleDevice.id),\n routes: [\n \"0.0.0.0/0\",\n \"::/0\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_device = tailscale.get_device(name=\"device.example.com\")\nsample_routes = tailscale.DeviceSubnetRoutes(\"sample_routes\",\n device_id=sample_device.id,\n routes=[\n \"10.0.1.0/24\",\n \"1.2.0.0/16\",\n \"2.0.0.0/24\",\n ])\nsample_exit_node = tailscale.DeviceSubnetRoutes(\"sample_exit_node\",\n device_id=sample_device.id,\n routes=[\n \"0.0.0.0/0\",\n \"::/0\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleDevice = Tailscale.GetDevice.Invoke(new()\n {\n Name = \"device.example.com\",\n });\n\n var sampleRoutes = new Tailscale.DeviceSubnetRoutes(\"sample_routes\", new()\n {\n DeviceId = sampleDevice.Apply(getDeviceResult =\u003e getDeviceResult.Id),\n Routes = new[]\n {\n \"10.0.1.0/24\",\n \"1.2.0.0/16\",\n \"2.0.0.0/24\",\n },\n });\n\n var sampleExitNode = new Tailscale.DeviceSubnetRoutes(\"sample_exit_node\", new()\n {\n DeviceId = sampleDevice.Apply(getDeviceResult =\u003e getDeviceResult.Id),\n Routes = new[]\n {\n \"0.0.0.0/0\",\n \"::/0\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsampleDevice, err := tailscale.GetDevice(ctx, \u0026tailscale.GetDeviceArgs{\n\t\t\tName: pulumi.StringRef(\"device.example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceSubnetRoutes(ctx, \"sample_routes\", \u0026tailscale.DeviceSubnetRoutesArgs{\n\t\t\tDeviceId: pulumi.String(sampleDevice.Id),\n\t\t\tRoutes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"10.0.1.0/24\"),\n\t\t\t\tpulumi.String(\"1.2.0.0/16\"),\n\t\t\t\tpulumi.String(\"2.0.0.0/24\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceSubnetRoutes(ctx, \"sample_exit_node\", \u0026tailscale.DeviceSubnetRoutesArgs{\n\t\t\tDeviceId: pulumi.String(sampleDevice.Id),\n\t\t\tRoutes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"0.0.0.0/0\"),\n\t\t\t\tpulumi.String(\"::/0\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.TailscaleFunctions;\nimport com.pulumi.tailscale.inputs.GetDeviceArgs;\nimport com.pulumi.tailscale.DeviceSubnetRoutes;\nimport com.pulumi.tailscale.DeviceSubnetRoutesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var sampleDevice = TailscaleFunctions.getDevice(GetDeviceArgs.builder()\n .name(\"device.example.com\")\n .build());\n\n var sampleRoutes = new DeviceSubnetRoutes(\"sampleRoutes\", DeviceSubnetRoutesArgs.builder()\n .deviceId(sampleDevice.applyValue(getDeviceResult -\u003e getDeviceResult.id()))\n .routes( \n \"10.0.1.0/24\",\n \"1.2.0.0/16\",\n \"2.0.0.0/24\")\n .build());\n\n var sampleExitNode = new DeviceSubnetRoutes(\"sampleExitNode\", DeviceSubnetRoutesArgs.builder()\n .deviceId(sampleDevice.applyValue(getDeviceResult -\u003e getDeviceResult.id()))\n .routes( \n \"0.0.0.0/0\",\n \"::/0\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleRoutes:\n type: tailscale:DeviceSubnetRoutes\n name: sample_routes\n properties:\n deviceId: ${sampleDevice.id}\n routes:\n - 10.0.1.0/24\n - 1.2.0.0/16\n - 2.0.0.0/24\n sampleExitNode:\n type: tailscale:DeviceSubnetRoutes\n name: sample_exit_node\n properties:\n deviceId: ${sampleDevice.id}\n routes:\n - 0.0.0.0/0\n - ::/0\nvariables:\n sampleDevice:\n fn::invoke:\n Function: tailscale:getDevice\n Arguments:\n name: device.example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nDevice subnet rules can be imported using the device id, e.g.,\n\n```sh\n$ pulumi import tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes sample 123456789\n```\n\n", "properties": { "deviceId": { "type": "string", @@ -576,7 +576,7 @@ } }, "tailscale:index/deviceTags:DeviceTags": { - "description": "The device_tags resource is used to apply tags to Tailscale devices. See https://tailscale.com/kb/1068/acl-tags/ for more details.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleDevice = tailscale.getDevice({\n name: \"device.example.com\",\n});\nconst sampleTags = new tailscale.DeviceTags(\"sample_tags\", {\n deviceId: sampleDevice.then(sampleDevice =\u003e sampleDevice.id),\n tags: [\"room:bedroom\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_device = tailscale.get_device(name=\"device.example.com\")\nsample_tags = tailscale.DeviceTags(\"sample_tags\",\n device_id=sample_device.id,\n tags=[\"room:bedroom\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleDevice = Tailscale.GetDevice.Invoke(new()\n {\n Name = \"device.example.com\",\n });\n\n var sampleTags = new Tailscale.DeviceTags(\"sample_tags\", new()\n {\n DeviceId = sampleDevice.Apply(getDeviceResult =\u003e getDeviceResult.Id),\n Tags = new[]\n {\n \"room:bedroom\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsampleDevice, err := tailscale.GetDevice(ctx, \u0026tailscale.GetDeviceArgs{\n\t\t\tName: pulumi.StringRef(\"device.example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceTags(ctx, \"sample_tags\", \u0026tailscale.DeviceTagsArgs{\n\t\t\tDeviceId: pulumi.String(sampleDevice.Id),\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"room:bedroom\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.TailscaleFunctions;\nimport com.pulumi.tailscale.inputs.GetDeviceArgs;\nimport com.pulumi.tailscale.DeviceTags;\nimport com.pulumi.tailscale.DeviceTagsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var sampleDevice = TailscaleFunctions.getDevice(GetDeviceArgs.builder()\n .name(\"device.example.com\")\n .build());\n\n var sampleTags = new DeviceTags(\"sampleTags\", DeviceTagsArgs.builder()\n .deviceId(sampleDevice.applyValue(getDeviceResult -\u003e getDeviceResult.id()))\n .tags(\"room:bedroom\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleTags:\n type: tailscale:DeviceTags\n name: sample_tags\n properties:\n deviceId: ${sampleDevice.id}\n tags:\n - room:bedroom\nvariables:\n sampleDevice:\n fn::invoke:\n Function: tailscale:getDevice\n Arguments:\n name: device.example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The device_tags resource is used to apply tags to Tailscale devices. See https://tailscale.com/kb/1068/acl-tags/ for more details.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleDevice = tailscale.getDevice({\n name: \"device.example.com\",\n});\nconst sampleTags = new tailscale.DeviceTags(\"sample_tags\", {\n deviceId: sampleDevice.then(sampleDevice =\u003e sampleDevice.id),\n tags: [\"room:bedroom\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_device = tailscale.get_device(name=\"device.example.com\")\nsample_tags = tailscale.DeviceTags(\"sample_tags\",\n device_id=sample_device.id,\n tags=[\"room:bedroom\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleDevice = Tailscale.GetDevice.Invoke(new()\n {\n Name = \"device.example.com\",\n });\n\n var sampleTags = new Tailscale.DeviceTags(\"sample_tags\", new()\n {\n DeviceId = sampleDevice.Apply(getDeviceResult =\u003e getDeviceResult.Id),\n Tags = new[]\n {\n \"room:bedroom\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsampleDevice, err := tailscale.GetDevice(ctx, \u0026tailscale.GetDeviceArgs{\n\t\t\tName: pulumi.StringRef(\"device.example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceTags(ctx, \"sample_tags\", \u0026tailscale.DeviceTagsArgs{\n\t\t\tDeviceId: pulumi.String(sampleDevice.Id),\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"room:bedroom\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.TailscaleFunctions;\nimport com.pulumi.tailscale.inputs.GetDeviceArgs;\nimport com.pulumi.tailscale.DeviceTags;\nimport com.pulumi.tailscale.DeviceTagsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var sampleDevice = TailscaleFunctions.getDevice(GetDeviceArgs.builder()\n .name(\"device.example.com\")\n .build());\n\n var sampleTags = new DeviceTags(\"sampleTags\", DeviceTagsArgs.builder()\n .deviceId(sampleDevice.applyValue(getDeviceResult -\u003e getDeviceResult.id()))\n .tags(\"room:bedroom\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleTags:\n type: tailscale:DeviceTags\n name: sample_tags\n properties:\n deviceId: ${sampleDevice.id}\n tags:\n - room:bedroom\nvariables:\n sampleDevice:\n fn::invoke:\n Function: tailscale:getDevice\n Arguments:\n name: device.example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nDevice tags can be imported using the device id, e.g.,\n\n```sh\n$ pulumi import tailscale:index/deviceTags:DeviceTags sample 123456789\n```\n\n", "properties": { "deviceId": { "type": "string", @@ -630,7 +630,7 @@ } }, "tailscale:index/dnsNameservers:DnsNameservers": { - "description": "The dns_nameservers resource allows you to configure DNS nameservers for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleNameservers = new tailscale.DnsNameservers(\"sample_nameservers\", {nameservers: [\n \"8.8.8.8\",\n \"8.8.4.4\",\n]});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_nameservers = tailscale.DnsNameservers(\"sample_nameservers\", nameservers=[\n \"8.8.8.8\",\n \"8.8.4.4\",\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleNameservers = new Tailscale.DnsNameservers(\"sample_nameservers\", new()\n {\n Nameservers = new[]\n {\n \"8.8.8.8\",\n \"8.8.4.4\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewDnsNameservers(ctx, \"sample_nameservers\", \u0026tailscale.DnsNameserversArgs{\n\t\t\tNameservers: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"8.8.8.8\"),\n\t\t\t\tpulumi.String(\"8.8.4.4\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.DnsNameservers;\nimport com.pulumi.tailscale.DnsNameserversArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sampleNameservers = new DnsNameservers(\"sampleNameservers\", DnsNameserversArgs.builder()\n .nameservers( \n \"8.8.8.8\",\n \"8.8.4.4\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleNameservers:\n type: tailscale:DnsNameservers\n name: sample_nameservers\n properties:\n nameservers:\n - 8.8.8.8\n - 8.8.4.4\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The dns_nameservers resource allows you to configure DNS nameservers for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleNameservers = new tailscale.DnsNameservers(\"sample_nameservers\", {nameservers: [\n \"8.8.8.8\",\n \"8.8.4.4\",\n]});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_nameservers = tailscale.DnsNameservers(\"sample_nameservers\", nameservers=[\n \"8.8.8.8\",\n \"8.8.4.4\",\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleNameservers = new Tailscale.DnsNameservers(\"sample_nameservers\", new()\n {\n Nameservers = new[]\n {\n \"8.8.8.8\",\n \"8.8.4.4\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewDnsNameservers(ctx, \"sample_nameservers\", \u0026tailscale.DnsNameserversArgs{\n\t\t\tNameservers: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"8.8.8.8\"),\n\t\t\t\tpulumi.String(\"8.8.4.4\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.DnsNameservers;\nimport com.pulumi.tailscale.DnsNameserversArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sampleNameservers = new DnsNameservers(\"sampleNameservers\", DnsNameserversArgs.builder()\n .nameservers( \n \"8.8.8.8\",\n \"8.8.4.4\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleNameservers:\n type: tailscale:DnsNameservers\n name: sample_nameservers\n properties:\n nameservers:\n - 8.8.8.8\n - 8.8.4.4\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nID doesn't matter.\n\n```sh\n$ pulumi import tailscale:index/dnsNameservers:DnsNameservers sample dns_nameservers\n```\n\n", "properties": { "nameservers": { "type": "array", @@ -701,7 +701,7 @@ } }, "tailscale:index/dnsSearchPaths:DnsSearchPaths": { - "description": "The dns_nameservers resource allows you to configure DNS nameservers for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleSearchPaths = new tailscale.DnsSearchPaths(\"sample_search_paths\", {searchPaths: [\"example.com\"]});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_search_paths = tailscale.DnsSearchPaths(\"sample_search_paths\", search_paths=[\"example.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleSearchPaths = new Tailscale.DnsSearchPaths(\"sample_search_paths\", new()\n {\n SearchPaths = new[]\n {\n \"example.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewDnsSearchPaths(ctx, \"sample_search_paths\", \u0026tailscale.DnsSearchPathsArgs{\n\t\t\tSearchPaths: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example.com\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.DnsSearchPaths;\nimport com.pulumi.tailscale.DnsSearchPathsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sampleSearchPaths = new DnsSearchPaths(\"sampleSearchPaths\", DnsSearchPathsArgs.builder()\n .searchPaths(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleSearchPaths:\n type: tailscale:DnsSearchPaths\n name: sample_search_paths\n properties:\n searchPaths:\n - example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The dns_nameservers resource allows you to configure DNS nameservers for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleSearchPaths = new tailscale.DnsSearchPaths(\"sample_search_paths\", {searchPaths: [\"example.com\"]});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_search_paths = tailscale.DnsSearchPaths(\"sample_search_paths\", search_paths=[\"example.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleSearchPaths = new Tailscale.DnsSearchPaths(\"sample_search_paths\", new()\n {\n SearchPaths = new[]\n {\n \"example.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewDnsSearchPaths(ctx, \"sample_search_paths\", \u0026tailscale.DnsSearchPathsArgs{\n\t\t\tSearchPaths: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example.com\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.DnsSearchPaths;\nimport com.pulumi.tailscale.DnsSearchPathsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sampleSearchPaths = new DnsSearchPaths(\"sampleSearchPaths\", DnsSearchPathsArgs.builder()\n .searchPaths(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleSearchPaths:\n type: tailscale:DnsSearchPaths\n name: sample_search_paths\n properties:\n searchPaths:\n - example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nID doesn't matter.\n\n```sh\n$ pulumi import tailscale:index/dnsSearchPaths:DnsSearchPaths sample dns_search_paths\n```\n\n", "properties": { "searchPaths": { "type": "array", @@ -797,7 +797,7 @@ } }, "tailscale:index/logstreamConfiguration:LogstreamConfiguration": { - "description": "The logstream_configuration resource allows you to configure streaming configuration or network flow logs to a supported security information and event management (SIEM) system. See https://tailscale.com/kb/1255/log-streaming for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleLogstreamConfiguration = new tailscale.LogstreamConfiguration(\"sample_logstream_configuration\", {\n logType: \"configuration\",\n destinationType: \"panther\",\n url: \"https://example.com\",\n token: \"some-token\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_logstream_configuration = tailscale.LogstreamConfiguration(\"sample_logstream_configuration\",\n log_type=\"configuration\",\n destination_type=\"panther\",\n url=\"https://example.com\",\n token=\"some-token\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleLogstreamConfiguration = new Tailscale.LogstreamConfiguration(\"sample_logstream_configuration\", new()\n {\n LogType = \"configuration\",\n DestinationType = \"panther\",\n Url = \"https://example.com\",\n Token = \"some-token\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewLogstreamConfiguration(ctx, \"sample_logstream_configuration\", \u0026tailscale.LogstreamConfigurationArgs{\n\t\t\tLogType: pulumi.String(\"configuration\"),\n\t\t\tDestinationType: pulumi.String(\"panther\"),\n\t\t\tUrl: pulumi.String(\"https://example.com\"),\n\t\t\tToken: pulumi.String(\"some-token\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.LogstreamConfiguration;\nimport com.pulumi.tailscale.LogstreamConfigurationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sampleLogstreamConfiguration = new LogstreamConfiguration(\"sampleLogstreamConfiguration\", LogstreamConfigurationArgs.builder()\n .logType(\"configuration\")\n .destinationType(\"panther\")\n .url(\"https://example.com\")\n .token(\"some-token\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleLogstreamConfiguration:\n type: tailscale:LogstreamConfiguration\n name: sample_logstream_configuration\n properties:\n logType: configuration\n destinationType: panther\n url: https://example.com\n token: some-token\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The logstream_configuration resource allows you to configure streaming configuration or network flow logs to a supported security information and event management (SIEM) system. See https://tailscale.com/kb/1255/log-streaming for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleLogstreamConfiguration = new tailscale.LogstreamConfiguration(\"sample_logstream_configuration\", {\n logType: \"configuration\",\n destinationType: \"panther\",\n url: \"https://example.com\",\n token: \"some-token\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_logstream_configuration = tailscale.LogstreamConfiguration(\"sample_logstream_configuration\",\n log_type=\"configuration\",\n destination_type=\"panther\",\n url=\"https://example.com\",\n token=\"some-token\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sampleLogstreamConfiguration = new Tailscale.LogstreamConfiguration(\"sample_logstream_configuration\", new()\n {\n LogType = \"configuration\",\n DestinationType = \"panther\",\n Url = \"https://example.com\",\n Token = \"some-token\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewLogstreamConfiguration(ctx, \"sample_logstream_configuration\", \u0026tailscale.LogstreamConfigurationArgs{\n\t\t\tLogType: pulumi.String(\"configuration\"),\n\t\t\tDestinationType: pulumi.String(\"panther\"),\n\t\t\tUrl: pulumi.String(\"https://example.com\"),\n\t\t\tToken: pulumi.String(\"some-token\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.LogstreamConfiguration;\nimport com.pulumi.tailscale.LogstreamConfigurationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sampleLogstreamConfiguration = new LogstreamConfiguration(\"sampleLogstreamConfiguration\", LogstreamConfigurationArgs.builder()\n .logType(\"configuration\")\n .destinationType(\"panther\")\n .url(\"https://example.com\")\n .token(\"some-token\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sampleLogstreamConfiguration:\n type: tailscale:LogstreamConfiguration\n name: sample_logstream_configuration\n properties:\n logType: configuration\n destinationType: panther\n url: https://example.com\n token: some-token\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nLogstream configuration can be imported using the logstream configuration id, e.g.,\n\n```sh\n$ pulumi import tailscale:index/logstreamConfiguration:LogstreamConfiguration sample_logstream_configuration 123456789\n```\n\n", "properties": { "destinationType": { "type": "string", @@ -887,7 +887,7 @@ } }, "tailscale:index/postureIntegration:PostureIntegration": { - "description": "The posture_integration resource allows you to manage integrations with device posture data providers. See https://tailscale.com/kb/1288/device-posture for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst samplePostureIntegration = new tailscale.PostureIntegration(\"sample_posture_integration\", {\n postureProvider: \"falcon\",\n cloudId: \"us-1\",\n clientId: \"clientid1\",\n clientSecret: \"test-secret1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_posture_integration = tailscale.PostureIntegration(\"sample_posture_integration\",\n posture_provider=\"falcon\",\n cloud_id=\"us-1\",\n client_id=\"clientid1\",\n client_secret=\"test-secret1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var samplePostureIntegration = new Tailscale.PostureIntegration(\"sample_posture_integration\", new()\n {\n PostureProvider = \"falcon\",\n CloudId = \"us-1\",\n ClientId = \"clientid1\",\n ClientSecret = \"test-secret1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewPostureIntegration(ctx, \"sample_posture_integration\", \u0026tailscale.PostureIntegrationArgs{\n\t\t\tPostureProvider: pulumi.String(\"falcon\"),\n\t\t\tCloudId: pulumi.String(\"us-1\"),\n\t\t\tClientId: pulumi.String(\"clientid1\"),\n\t\t\tClientSecret: pulumi.String(\"test-secret1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.PostureIntegration;\nimport com.pulumi.tailscale.PostureIntegrationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var samplePostureIntegration = new PostureIntegration(\"samplePostureIntegration\", PostureIntegrationArgs.builder()\n .postureProvider(\"falcon\")\n .cloudId(\"us-1\")\n .clientId(\"clientid1\")\n .clientSecret(\"test-secret1\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n samplePostureIntegration:\n type: tailscale:PostureIntegration\n name: sample_posture_integration\n properties:\n postureProvider: falcon\n cloudId: us-1\n clientId: clientid1\n clientSecret: test-secret1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The posture_integration resource allows you to manage integrations with device posture data providers. See https://tailscale.com/kb/1288/device-posture for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst samplePostureIntegration = new tailscale.PostureIntegration(\"sample_posture_integration\", {\n postureProvider: \"falcon\",\n cloudId: \"us-1\",\n clientId: \"clientid1\",\n clientSecret: \"test-secret1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_posture_integration = tailscale.PostureIntegration(\"sample_posture_integration\",\n posture_provider=\"falcon\",\n cloud_id=\"us-1\",\n client_id=\"clientid1\",\n client_secret=\"test-secret1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var samplePostureIntegration = new Tailscale.PostureIntegration(\"sample_posture_integration\", new()\n {\n PostureProvider = \"falcon\",\n CloudId = \"us-1\",\n ClientId = \"clientid1\",\n ClientSecret = \"test-secret1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewPostureIntegration(ctx, \"sample_posture_integration\", \u0026tailscale.PostureIntegrationArgs{\n\t\t\tPostureProvider: pulumi.String(\"falcon\"),\n\t\t\tCloudId: pulumi.String(\"us-1\"),\n\t\t\tClientId: pulumi.String(\"clientid1\"),\n\t\t\tClientSecret: pulumi.String(\"test-secret1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tailscale.PostureIntegration;\nimport com.pulumi.tailscale.PostureIntegrationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var samplePostureIntegration = new PostureIntegration(\"samplePostureIntegration\", PostureIntegrationArgs.builder()\n .postureProvider(\"falcon\")\n .cloudId(\"us-1\")\n .clientId(\"clientid1\")\n .clientSecret(\"test-secret1\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n samplePostureIntegration:\n type: tailscale:PostureIntegration\n name: sample_posture_integration\n properties:\n postureProvider: falcon\n cloudId: us-1\n clientId: clientid1\n clientSecret: test-secret1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nPosture integration can be imported using the posture integration id, e.g.,\n\n```sh\n$ pulumi import tailscale:index/postureIntegration:PostureIntegration sample_posture_integration 123456789\n```\n\n", "properties": { "clientId": { "type": "string", diff --git a/provider/go.mod b/provider/go.mod index 34b12acd..a18014c5 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -10,7 +10,7 @@ require ( github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1 github.com/pulumi/pulumi/sdk/v3 v3.133.0 github.com/stretchr/testify v1.9.0 - github.com/tailscale/terraform-provider-tailscale v0.17.1 + github.com/tailscale/terraform-provider-tailscale v0.17.2 ) require ( diff --git a/provider/go.sum b/provider/go.sum index a30eaefc..18005e80 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2029,8 +2029,8 @@ github.com/tailscale/hujson v0.0.0-20221223112325-20486734a56a h1:SJy1Pu0eH1C29X github.com/tailscale/hujson v0.0.0-20221223112325-20486734a56a/go.mod h1:DFSS3NAGHthKo1gTlmEcSBiZrRJXi28rLNd/1udP1c8= github.com/tailscale/tailscale-client-go/v2 v2.0.0-20240916214524-e89a1ab786c8 h1:TWFePmmkhpLyR/HK4Y4eA+WQE/AkQLLYoDkGh5MvBTA= github.com/tailscale/tailscale-client-go/v2 v2.0.0-20240916214524-e89a1ab786c8/go.mod h1:i/MSgQ71kdyh1Wdp50XxrIgtsyO4uZ2SZSPd83lGKHM= -github.com/tailscale/terraform-provider-tailscale v0.17.1 h1:nSDr4F8jw/Fh7rMB48H/P4WcAdPU6nLNg0NupFfrtVY= -github.com/tailscale/terraform-provider-tailscale v0.17.1/go.mod h1:KYM6ORvfoNqYQ817POm+J8MNBOpsRFAh9ZJiuISjR8U= +github.com/tailscale/terraform-provider-tailscale v0.17.2 h1:MomNup+XfW6yra+kUFSGlsFURR5nN/BwihKsu1tADhw= +github.com/tailscale/terraform-provider-tailscale v0.17.2/go.mod h1:KYM6ORvfoNqYQ817POm+J8MNBOpsRFAh9ZJiuISjR8U= github.com/teekennedy/goldmark-markdown v0.3.0 h1:ik9/biVGCwGWFg8dQ3KVm2pQ/wiiG0whYiUcz9xH0W8= github.com/teekennedy/goldmark-markdown v0.3.0/go.mod h1:kMhDz8La77A9UHvJGsxejd0QUflN9sS+QXCqnhmxmNo= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= diff --git a/sdk/dotnet/DeviceKey.cs b/sdk/dotnet/DeviceKey.cs index 8384d739..94b30c27 100644 --- a/sdk/dotnet/DeviceKey.cs +++ b/sdk/dotnet/DeviceKey.cs @@ -35,6 +35,14 @@ namespace Pulumi.Tailscale /// /// }); /// ``` + /// + /// ## Import + /// + /// Device key can be imported using the device id, e.g., + /// + /// ```sh + /// $ pulumi import tailscale:index/deviceKey:DeviceKey sample 123456789 + /// ``` /// [TailscaleResourceType("tailscale:index/deviceKey:DeviceKey")] public partial class DeviceKey : global::Pulumi.CustomResource diff --git a/sdk/dotnet/DeviceSubnetRoutes.cs b/sdk/dotnet/DeviceSubnetRoutes.cs index beea7673..fa959a31 100644 --- a/sdk/dotnet/DeviceSubnetRoutes.cs +++ b/sdk/dotnet/DeviceSubnetRoutes.cs @@ -48,6 +48,14 @@ namespace Pulumi.Tailscale /// /// }); /// ``` + /// + /// ## Import + /// + /// Device subnet rules can be imported using the device id, e.g., + /// + /// ```sh + /// $ pulumi import tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes sample 123456789 + /// ``` /// [TailscaleResourceType("tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes")] public partial class DeviceSubnetRoutes : global::Pulumi.CustomResource diff --git a/sdk/dotnet/DeviceTags.cs b/sdk/dotnet/DeviceTags.cs index 7097c1a2..5c7d0f25 100644 --- a/sdk/dotnet/DeviceTags.cs +++ b/sdk/dotnet/DeviceTags.cs @@ -38,6 +38,14 @@ namespace Pulumi.Tailscale /// /// }); /// ``` + /// + /// ## Import + /// + /// Device tags can be imported using the device id, e.g., + /// + /// ```sh + /// $ pulumi import tailscale:index/deviceTags:DeviceTags sample 123456789 + /// ``` /// [TailscaleResourceType("tailscale:index/deviceTags:DeviceTags")] public partial class DeviceTags : global::Pulumi.CustomResource diff --git a/sdk/dotnet/DnsNameservers.cs b/sdk/dotnet/DnsNameservers.cs index dbc819ad..b737e359 100644 --- a/sdk/dotnet/DnsNameservers.cs +++ b/sdk/dotnet/DnsNameservers.cs @@ -33,6 +33,14 @@ namespace Pulumi.Tailscale /// /// }); /// ``` + /// + /// ## Import + /// + /// ID doesn't matter. + /// + /// ```sh + /// $ pulumi import tailscale:index/dnsNameservers:DnsNameservers sample dns_nameservers + /// ``` /// [TailscaleResourceType("tailscale:index/dnsNameservers:DnsNameservers")] public partial class DnsNameservers : global::Pulumi.CustomResource diff --git a/sdk/dotnet/DnsSearchPaths.cs b/sdk/dotnet/DnsSearchPaths.cs index 8c267180..ca455cc0 100644 --- a/sdk/dotnet/DnsSearchPaths.cs +++ b/sdk/dotnet/DnsSearchPaths.cs @@ -32,6 +32,14 @@ namespace Pulumi.Tailscale /// /// }); /// ``` + /// + /// ## Import + /// + /// ID doesn't matter. + /// + /// ```sh + /// $ pulumi import tailscale:index/dnsSearchPaths:DnsSearchPaths sample dns_search_paths + /// ``` /// [TailscaleResourceType("tailscale:index/dnsSearchPaths:DnsSearchPaths")] public partial class DnsSearchPaths : global::Pulumi.CustomResource diff --git a/sdk/dotnet/LogstreamConfiguration.cs b/sdk/dotnet/LogstreamConfiguration.cs index 09665bd7..32c47b9a 100644 --- a/sdk/dotnet/LogstreamConfiguration.cs +++ b/sdk/dotnet/LogstreamConfiguration.cs @@ -32,6 +32,14 @@ namespace Pulumi.Tailscale /// /// }); /// ``` + /// + /// ## Import + /// + /// Logstream configuration can be imported using the logstream configuration id, e.g., + /// + /// ```sh + /// $ pulumi import tailscale:index/logstreamConfiguration:LogstreamConfiguration sample_logstream_configuration 123456789 + /// ``` /// [TailscaleResourceType("tailscale:index/logstreamConfiguration:LogstreamConfiguration")] public partial class LogstreamConfiguration : global::Pulumi.CustomResource diff --git a/sdk/dotnet/PostureIntegration.cs b/sdk/dotnet/PostureIntegration.cs index 74f61e82..ba31c05e 100644 --- a/sdk/dotnet/PostureIntegration.cs +++ b/sdk/dotnet/PostureIntegration.cs @@ -32,6 +32,14 @@ namespace Pulumi.Tailscale /// /// }); /// ``` + /// + /// ## Import + /// + /// Posture integration can be imported using the posture integration id, e.g., + /// + /// ```sh + /// $ pulumi import tailscale:index/postureIntegration:PostureIntegration sample_posture_integration 123456789 + /// ``` /// [TailscaleResourceType("tailscale:index/postureIntegration:PostureIntegration")] public partial class PostureIntegration : global::Pulumi.CustomResource diff --git a/sdk/go/tailscale/deviceKey.go b/sdk/go/tailscale/deviceKey.go index 1f58eb34..fa1afee1 100644 --- a/sdk/go/tailscale/deviceKey.go +++ b/sdk/go/tailscale/deviceKey.go @@ -46,6 +46,14 @@ import ( // } // // ``` +// +// ## Import +// +// Device key can be imported using the device id, e.g., +// +// ```sh +// $ pulumi import tailscale:index/deviceKey:DeviceKey sample 123456789 +// ``` type DeviceKey struct { pulumi.CustomResourceState diff --git a/sdk/go/tailscale/deviceSubnetRoutes.go b/sdk/go/tailscale/deviceSubnetRoutes.go index f5e17726..20cf3468 100644 --- a/sdk/go/tailscale/deviceSubnetRoutes.go +++ b/sdk/go/tailscale/deviceSubnetRoutes.go @@ -58,6 +58,14 @@ import ( // } // // ``` +// +// ## Import +// +// Device subnet rules can be imported using the device id, e.g., +// +// ```sh +// $ pulumi import tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes sample 123456789 +// ``` type DeviceSubnetRoutes struct { pulumi.CustomResourceState diff --git a/sdk/go/tailscale/deviceTags.go b/sdk/go/tailscale/deviceTags.go index c9cdaab1..b709c289 100644 --- a/sdk/go/tailscale/deviceTags.go +++ b/sdk/go/tailscale/deviceTags.go @@ -48,6 +48,14 @@ import ( // } // // ``` +// +// ## Import +// +// Device tags can be imported using the device id, e.g., +// +// ```sh +// $ pulumi import tailscale:index/deviceTags:DeviceTags sample 123456789 +// ``` type DeviceTags struct { pulumi.CustomResourceState diff --git a/sdk/go/tailscale/dnsNameservers.go b/sdk/go/tailscale/dnsNameservers.go index 9774b3a9..9894b2ea 100644 --- a/sdk/go/tailscale/dnsNameservers.go +++ b/sdk/go/tailscale/dnsNameservers.go @@ -42,6 +42,14 @@ import ( // } // // ``` +// +// ## Import +// +// ID doesn't matter. +// +// ```sh +// $ pulumi import tailscale:index/dnsNameservers:DnsNameservers sample dns_nameservers +// ``` type DnsNameservers struct { pulumi.CustomResourceState diff --git a/sdk/go/tailscale/dnsSearchPaths.go b/sdk/go/tailscale/dnsSearchPaths.go index 4464d1fd..28ff0c78 100644 --- a/sdk/go/tailscale/dnsSearchPaths.go +++ b/sdk/go/tailscale/dnsSearchPaths.go @@ -41,6 +41,14 @@ import ( // } // // ``` +// +// ## Import +// +// ID doesn't matter. +// +// ```sh +// $ pulumi import tailscale:index/dnsSearchPaths:DnsSearchPaths sample dns_search_paths +// ``` type DnsSearchPaths struct { pulumi.CustomResourceState diff --git a/sdk/go/tailscale/logstreamConfiguration.go b/sdk/go/tailscale/logstreamConfiguration.go index 37c334db..938be4e4 100644 --- a/sdk/go/tailscale/logstreamConfiguration.go +++ b/sdk/go/tailscale/logstreamConfiguration.go @@ -42,6 +42,14 @@ import ( // } // // ``` +// +// ## Import +// +// Logstream configuration can be imported using the logstream configuration id, e.g., +// +// ```sh +// $ pulumi import tailscale:index/logstreamConfiguration:LogstreamConfiguration sample_logstream_configuration 123456789 +// ``` type LogstreamConfiguration struct { pulumi.CustomResourceState diff --git a/sdk/go/tailscale/postureIntegration.go b/sdk/go/tailscale/postureIntegration.go index 43104b60..56a3526f 100644 --- a/sdk/go/tailscale/postureIntegration.go +++ b/sdk/go/tailscale/postureIntegration.go @@ -42,6 +42,14 @@ import ( // } // // ``` +// +// ## Import +// +// Posture integration can be imported using the posture integration id, e.g., +// +// ```sh +// $ pulumi import tailscale:index/postureIntegration:PostureIntegration sample_posture_integration 123456789 +// ``` type PostureIntegration struct { pulumi.CustomResourceState diff --git a/sdk/java/src/main/java/com/pulumi/tailscale/DeviceKey.java b/sdk/java/src/main/java/com/pulumi/tailscale/DeviceKey.java index f739d1b5..c210ae9f 100644 --- a/sdk/java/src/main/java/com/pulumi/tailscale/DeviceKey.java +++ b/sdk/java/src/main/java/com/pulumi/tailscale/DeviceKey.java @@ -60,6 +60,14 @@ * * <!--End PulumiCodeChooser --> * + * ## Import + * + * Device key can be imported using the device id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/deviceKey:DeviceKey sample 123456789 + * ``` + * */ @ResourceType(type="tailscale:index/deviceKey:DeviceKey") public class DeviceKey extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/tailscale/DeviceSubnetRoutes.java b/sdk/java/src/main/java/com/pulumi/tailscale/DeviceSubnetRoutes.java index 6a987e6e..225471aa 100644 --- a/sdk/java/src/main/java/com/pulumi/tailscale/DeviceSubnetRoutes.java +++ b/sdk/java/src/main/java/com/pulumi/tailscale/DeviceSubnetRoutes.java @@ -67,6 +67,14 @@ * * <!--End PulumiCodeChooser --> * + * ## Import + * + * Device subnet rules can be imported using the device id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes sample 123456789 + * ``` + * */ @ResourceType(type="tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes") public class DeviceSubnetRoutes extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/tailscale/DeviceTags.java b/sdk/java/src/main/java/com/pulumi/tailscale/DeviceTags.java index 22fa643d..55da864c 100644 --- a/sdk/java/src/main/java/com/pulumi/tailscale/DeviceTags.java +++ b/sdk/java/src/main/java/com/pulumi/tailscale/DeviceTags.java @@ -59,6 +59,14 @@ * * <!--End PulumiCodeChooser --> * + * ## Import + * + * Device tags can be imported using the device id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/deviceTags:DeviceTags sample 123456789 + * ``` + * */ @ResourceType(type="tailscale:index/deviceTags:DeviceTags") public class DeviceTags extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/tailscale/DnsNameservers.java b/sdk/java/src/main/java/com/pulumi/tailscale/DnsNameservers.java index e3dcc44a..73621f57 100644 --- a/sdk/java/src/main/java/com/pulumi/tailscale/DnsNameservers.java +++ b/sdk/java/src/main/java/com/pulumi/tailscale/DnsNameservers.java @@ -54,6 +54,14 @@ * * <!--End PulumiCodeChooser --> * + * ## Import + * + * ID doesn't matter. + * + * ```sh + * $ pulumi import tailscale:index/dnsNameservers:DnsNameservers sample dns_nameservers + * ``` + * */ @ResourceType(type="tailscale:index/dnsNameservers:DnsNameservers") public class DnsNameservers extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/tailscale/DnsSearchPaths.java b/sdk/java/src/main/java/com/pulumi/tailscale/DnsSearchPaths.java index 064c6625..50c6aee1 100644 --- a/sdk/java/src/main/java/com/pulumi/tailscale/DnsSearchPaths.java +++ b/sdk/java/src/main/java/com/pulumi/tailscale/DnsSearchPaths.java @@ -52,6 +52,14 @@ * * <!--End PulumiCodeChooser --> * + * ## Import + * + * ID doesn't matter. + * + * ```sh + * $ pulumi import tailscale:index/dnsSearchPaths:DnsSearchPaths sample dns_search_paths + * ``` + * */ @ResourceType(type="tailscale:index/dnsSearchPaths:DnsSearchPaths") public class DnsSearchPaths extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/tailscale/LogstreamConfiguration.java b/sdk/java/src/main/java/com/pulumi/tailscale/LogstreamConfiguration.java index 8197bc8d..5cd1b3fc 100644 --- a/sdk/java/src/main/java/com/pulumi/tailscale/LogstreamConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/tailscale/LogstreamConfiguration.java @@ -56,6 +56,14 @@ * * <!--End PulumiCodeChooser --> * + * ## Import + * + * Logstream configuration can be imported using the logstream configuration id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/logstreamConfiguration:LogstreamConfiguration sample_logstream_configuration 123456789 + * ``` + * */ @ResourceType(type="tailscale:index/logstreamConfiguration:LogstreamConfiguration") public class LogstreamConfiguration extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/tailscale/PostureIntegration.java b/sdk/java/src/main/java/com/pulumi/tailscale/PostureIntegration.java index cd4c2416..c4aaca19 100644 --- a/sdk/java/src/main/java/com/pulumi/tailscale/PostureIntegration.java +++ b/sdk/java/src/main/java/com/pulumi/tailscale/PostureIntegration.java @@ -55,6 +55,14 @@ * * <!--End PulumiCodeChooser --> * + * ## Import + * + * Posture integration can be imported using the posture integration id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/postureIntegration:PostureIntegration sample_posture_integration 123456789 + * ``` + * */ @ResourceType(type="tailscale:index/postureIntegration:PostureIntegration") public class PostureIntegration extends com.pulumi.resources.CustomResource { diff --git a/sdk/nodejs/deviceKey.ts b/sdk/nodejs/deviceKey.ts index 5ea10ee8..d2f351e9 100644 --- a/sdk/nodejs/deviceKey.ts +++ b/sdk/nodejs/deviceKey.ts @@ -21,6 +21,14 @@ import * as utilities from "./utilities"; * keyExpiryDisabled: true, * }); * ``` + * + * ## Import + * + * Device key can be imported using the device id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/deviceKey:DeviceKey sample 123456789 + * ``` */ export class DeviceKey extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/deviceSubnetRoutes.ts b/sdk/nodejs/deviceSubnetRoutes.ts index 30a9babe..50a36073 100644 --- a/sdk/nodejs/deviceSubnetRoutes.ts +++ b/sdk/nodejs/deviceSubnetRoutes.ts @@ -30,6 +30,14 @@ import * as utilities from "./utilities"; * ], * }); * ``` + * + * ## Import + * + * Device subnet rules can be imported using the device id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes sample 123456789 + * ``` */ export class DeviceSubnetRoutes extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/deviceTags.ts b/sdk/nodejs/deviceTags.ts index da3e1342..989e150e 100644 --- a/sdk/nodejs/deviceTags.ts +++ b/sdk/nodejs/deviceTags.ts @@ -21,6 +21,14 @@ import * as utilities from "./utilities"; * tags: ["room:bedroom"], * }); * ``` + * + * ## Import + * + * Device tags can be imported using the device id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/deviceTags:DeviceTags sample 123456789 + * ``` */ export class DeviceTags extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/dnsNameservers.ts b/sdk/nodejs/dnsNameservers.ts index 0461ea2c..1a39b6f3 100644 --- a/sdk/nodejs/dnsNameservers.ts +++ b/sdk/nodejs/dnsNameservers.ts @@ -18,6 +18,14 @@ import * as utilities from "./utilities"; * "8.8.4.4", * ]}); * ``` + * + * ## Import + * + * ID doesn't matter. + * + * ```sh + * $ pulumi import tailscale:index/dnsNameservers:DnsNameservers sample dns_nameservers + * ``` */ export class DnsNameservers extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/dnsSearchPaths.ts b/sdk/nodejs/dnsSearchPaths.ts index 9962dfb4..59bc28a1 100644 --- a/sdk/nodejs/dnsSearchPaths.ts +++ b/sdk/nodejs/dnsSearchPaths.ts @@ -15,6 +15,14 @@ import * as utilities from "./utilities"; * * const sampleSearchPaths = new tailscale.DnsSearchPaths("sample_search_paths", {searchPaths: ["example.com"]}); * ``` + * + * ## Import + * + * ID doesn't matter. + * + * ```sh + * $ pulumi import tailscale:index/dnsSearchPaths:DnsSearchPaths sample dns_search_paths + * ``` */ export class DnsSearchPaths extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/logstreamConfiguration.ts b/sdk/nodejs/logstreamConfiguration.ts index b65b1a81..f489d0cb 100644 --- a/sdk/nodejs/logstreamConfiguration.ts +++ b/sdk/nodejs/logstreamConfiguration.ts @@ -20,6 +20,14 @@ import * as utilities from "./utilities"; * token: "some-token", * }); * ``` + * + * ## Import + * + * Logstream configuration can be imported using the logstream configuration id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/logstreamConfiguration:LogstreamConfiguration sample_logstream_configuration 123456789 + * ``` */ export class LogstreamConfiguration extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/postureIntegration.ts b/sdk/nodejs/postureIntegration.ts index ee21da09..983d32ca 100644 --- a/sdk/nodejs/postureIntegration.ts +++ b/sdk/nodejs/postureIntegration.ts @@ -20,6 +20,14 @@ import * as utilities from "./utilities"; * clientSecret: "test-secret1", * }); * ``` + * + * ## Import + * + * Posture integration can be imported using the posture integration id, e.g., + * + * ```sh + * $ pulumi import tailscale:index/postureIntegration:PostureIntegration sample_posture_integration 123456789 + * ``` */ export class PostureIntegration extends pulumi.CustomResource { /** diff --git a/sdk/python/pulumi_tailscale/device_key.py b/sdk/python/pulumi_tailscale/device_key.py index ea957d4b..acb7a5e4 100644 --- a/sdk/python/pulumi_tailscale/device_key.py +++ b/sdk/python/pulumi_tailscale/device_key.py @@ -113,6 +113,14 @@ def __init__(__self__, key_expiry_disabled=True) ``` + ## Import + + Device key can be imported using the device id, e.g., + + ```sh + $ pulumi import tailscale:index/deviceKey:DeviceKey sample 123456789 + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] device_id: The device to update the key properties of @@ -139,6 +147,14 @@ def __init__(__self__, key_expiry_disabled=True) ``` + ## Import + + Device key can be imported using the device id, e.g., + + ```sh + $ pulumi import tailscale:index/deviceKey:DeviceKey sample 123456789 + ``` + :param str resource_name: The name of the resource. :param DeviceKeyArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_tailscale/device_subnet_routes.py b/sdk/python/pulumi_tailscale/device_subnet_routes.py index 41bccb86..9e847ef5 100644 --- a/sdk/python/pulumi_tailscale/device_subnet_routes.py +++ b/sdk/python/pulumi_tailscale/device_subnet_routes.py @@ -120,6 +120,14 @@ def __init__(__self__, ]) ``` + ## Import + + Device subnet rules can be imported using the device id, e.g., + + ```sh + $ pulumi import tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes sample 123456789 + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] device_id: The device to set subnet routes for @@ -154,6 +162,14 @@ def __init__(__self__, ]) ``` + ## Import + + Device subnet rules can be imported using the device id, e.g., + + ```sh + $ pulumi import tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes sample 123456789 + ``` + :param str resource_name: The name of the resource. :param DeviceSubnetRoutesArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_tailscale/device_tags.py b/sdk/python/pulumi_tailscale/device_tags.py index 37bf49cb..aa2c46a6 100644 --- a/sdk/python/pulumi_tailscale/device_tags.py +++ b/sdk/python/pulumi_tailscale/device_tags.py @@ -112,6 +112,14 @@ def __init__(__self__, tags=["room:bedroom"]) ``` + ## Import + + Device tags can be imported using the device id, e.g., + + ```sh + $ pulumi import tailscale:index/deviceTags:DeviceTags sample 123456789 + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] device_id: The device to set tags for @@ -138,6 +146,14 @@ def __init__(__self__, tags=["room:bedroom"]) ``` + ## Import + + Device tags can be imported using the device id, e.g., + + ```sh + $ pulumi import tailscale:index/deviceTags:DeviceTags sample 123456789 + ``` + :param str resource_name: The name of the resource. :param DeviceTagsArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_tailscale/dns_nameservers.py b/sdk/python/pulumi_tailscale/dns_nameservers.py index b14fa556..923ae5be 100644 --- a/sdk/python/pulumi_tailscale/dns_nameservers.py +++ b/sdk/python/pulumi_tailscale/dns_nameservers.py @@ -80,6 +80,14 @@ def __init__(__self__, ]) ``` + ## Import + + ID doesn't matter. + + ```sh + $ pulumi import tailscale:index/dnsNameservers:DnsNameservers sample dns_nameservers + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] nameservers: Devices on your network will use these nameservers to resolve DNS names. IPv4 or IPv6 addresses are accepted. @@ -105,6 +113,14 @@ def __init__(__self__, ]) ``` + ## Import + + ID doesn't matter. + + ```sh + $ pulumi import tailscale:index/dnsNameservers:DnsNameservers sample dns_nameservers + ``` + :param str resource_name: The name of the resource. :param DnsNameserversArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_tailscale/dns_search_paths.py b/sdk/python/pulumi_tailscale/dns_search_paths.py index 9959d8a9..8199a7ff 100644 --- a/sdk/python/pulumi_tailscale/dns_search_paths.py +++ b/sdk/python/pulumi_tailscale/dns_search_paths.py @@ -77,6 +77,14 @@ def __init__(__self__, sample_search_paths = tailscale.DnsSearchPaths("sample_search_paths", search_paths=["example.com"]) ``` + ## Import + + ID doesn't matter. + + ```sh + $ pulumi import tailscale:index/dnsSearchPaths:DnsSearchPaths sample dns_search_paths + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] search_paths: Devices on your network will use these domain suffixes to resolve DNS names. @@ -99,6 +107,14 @@ def __init__(__self__, sample_search_paths = tailscale.DnsSearchPaths("sample_search_paths", search_paths=["example.com"]) ``` + ## Import + + ID doesn't matter. + + ```sh + $ pulumi import tailscale:index/dnsSearchPaths:DnsSearchPaths sample dns_search_paths + ``` + :param str resource_name: The name of the resource. :param DnsSearchPathsArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_tailscale/logstream_configuration.py b/sdk/python/pulumi_tailscale/logstream_configuration.py index deedfdba..1512ebd4 100644 --- a/sdk/python/pulumi_tailscale/logstream_configuration.py +++ b/sdk/python/pulumi_tailscale/logstream_configuration.py @@ -210,6 +210,14 @@ def __init__(__self__, token="some-token") ``` + ## Import + + Logstream configuration can be imported using the logstream configuration id, e.g., + + ```sh + $ pulumi import tailscale:index/logstreamConfiguration:LogstreamConfiguration sample_logstream_configuration 123456789 + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] destination_type: The type of system to which logs are being streamed. @@ -240,6 +248,14 @@ def __init__(__self__, token="some-token") ``` + ## Import + + Logstream configuration can be imported using the logstream configuration id, e.g., + + ```sh + $ pulumi import tailscale:index/logstreamConfiguration:LogstreamConfiguration sample_logstream_configuration 123456789 + ``` + :param str resource_name: The name of the resource. :param LogstreamConfigurationArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_tailscale/posture_integration.py b/sdk/python/pulumi_tailscale/posture_integration.py index 95471a23..21f9d0a7 100644 --- a/sdk/python/pulumi_tailscale/posture_integration.py +++ b/sdk/python/pulumi_tailscale/posture_integration.py @@ -212,6 +212,14 @@ def __init__(__self__, client_secret="test-secret1") ``` + ## Import + + Posture integration can be imported using the posture integration id, e.g., + + ```sh + $ pulumi import tailscale:index/postureIntegration:PostureIntegration sample_posture_integration 123456789 + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] client_id: Unique identifier for your client. @@ -242,6 +250,14 @@ def __init__(__self__, client_secret="test-secret1") ``` + ## Import + + Posture integration can be imported using the posture integration id, e.g., + + ```sh + $ pulumi import tailscale:index/postureIntegration:PostureIntegration sample_posture_integration 123456789 + ``` + :param str resource_name: The name of the resource. :param PostureIntegrationArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource.