diff --git a/examples/go.mod b/examples/go.mod index 030b2494..dba26d86 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-rancher2/examples/v6 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.140.0 +require github.com/pulumi/pulumi/pkg/v3 v3.142.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.140.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.142.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index e2374cde..304740d7 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -339,10 +339,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-rancher2/schema.json b/provider/cmd/pulumi-resource-rancher2/schema.json index 9b48da45..343423e5 100644 --- a/provider/cmd/pulumi-resource-rancher2/schema.json +++ b/provider/cmd/pulumi-resource-rancher2/schema.json @@ -20090,7 +20090,7 @@ } }, "rancher2:index/appV2:AppV2": { - "description": "Provides a Rancher App v2 resource. This can be used to manage helm charts for Rancher v2 environments and retrieve their information. App v2 resource is available at Rancher v2.5.x and above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\nimport * as std from \"@pulumi/std\";\n\n// Create a new Rancher2 App V2 using\nconst foo = new rancher2.AppV2(\"foo\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n name: \"rancher-monitoring\",\n namespace: \"cattle-monitoring-system\",\n repoName: \"rancher-charts\",\n chartName: \"rancher-monitoring\",\n chartVersion: \"9.4.200\",\n values: std.file({\n input: \"values.yaml\",\n }).then(invoke =\u003e invoke.result),\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\nimport pulumi_std as std\n\n# Create a new Rancher2 App V2 using\nfoo = rancher2.AppV2(\"foo\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n name=\"rancher-monitoring\",\n namespace=\"cattle-monitoring-system\",\n repo_name=\"rancher-charts\",\n chart_name=\"rancher-monitoring\",\n chart_version=\"9.4.200\",\n values=std.file(input=\"values.yaml\").result)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 App V2 using\n var foo = new Rancher2.AppV2(\"foo\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Name = \"rancher-monitoring\",\n Namespace = \"cattle-monitoring-system\",\n RepoName = \"rancher-charts\",\n ChartName = \"rancher-monitoring\",\n ChartVersion = \"9.4.200\",\n Values = Std.File.Invoke(new()\n {\n Input = \"values.yaml\",\n }).Apply(invoke =\u003e invoke.Result),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tinvokeFile, err := std.File(ctx, \u0026std.FileArgs{\n\t\t\tInput: \"values.yaml\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new Rancher2 App V2 using\n\t\t_, err = rancher2.NewAppV2(ctx, \"foo\", \u0026rancher2.AppV2Args{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tName: pulumi.String(\"rancher-monitoring\"),\n\t\t\tNamespace: pulumi.String(\"cattle-monitoring-system\"),\n\t\t\tRepoName: pulumi.String(\"rancher-charts\"),\n\t\t\tChartName: pulumi.String(\"rancher-monitoring\"),\n\t\t\tChartVersion: pulumi.String(\"9.4.200\"),\n\t\t\tValues: pulumi.String(invokeFile.Result),\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.rancher2.AppV2;\nimport com.pulumi.rancher2.AppV2Args;\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 // Create a new Rancher2 App V2 using\n var foo = new AppV2(\"foo\", AppV2Args.builder()\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .name(\"rancher-monitoring\")\n .namespace(\"cattle-monitoring-system\")\n .repoName(\"rancher-charts\")\n .chartName(\"rancher-monitoring\")\n .chartVersion(\"9.4.200\")\n .values(StdFunctions.file(FileArgs.builder()\n .input(\"values.yaml\")\n .build()).result())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 App V2 using\n foo:\n type: rancher2:AppV2\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n name: rancher-monitoring\n namespace: cattle-monitoring-system\n repoName: rancher-charts\n chartName: rancher-monitoring\n chartVersion: 9.4.200\n values:\n fn::invoke:\n Function: std:file\n Arguments:\n input: values.yaml\n Return: result\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Create an App from a Helm Chart using a different registry\n\nThe `system_default_registry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst cisBenchmark = new rancher2.AppV2(\"cis_benchmark\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n name: \"rancher-cis-benchmark\",\n namespace: \"cis-operator-system\",\n repoName: \"rancher-charts\",\n chartName: \"rancher-cis-benchmark\",\n systemDefaultRegistry: \"\u003csome.dns.here\u003e:\u003cPORT\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\ncis_benchmark = rancher2.AppV2(\"cis_benchmark\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n name=\"rancher-cis-benchmark\",\n namespace=\"cis-operator-system\",\n repo_name=\"rancher-charts\",\n chart_name=\"rancher-cis-benchmark\",\n system_default_registry=\"\u003csome.dns.here\u003e:\u003cPORT\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var cisBenchmark = new Rancher2.AppV2(\"cis_benchmark\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Name = \"rancher-cis-benchmark\",\n Namespace = \"cis-operator-system\",\n RepoName = \"rancher-charts\",\n ChartName = \"rancher-cis-benchmark\",\n SystemDefaultRegistry = \"\u003csome.dns.here\u003e:\u003cPORT\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.NewAppV2(ctx, \"cis_benchmark\", \u0026rancher2.AppV2Args{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tName: pulumi.String(\"rancher-cis-benchmark\"),\n\t\t\tNamespace: pulumi.String(\"cis-operator-system\"),\n\t\t\tRepoName: pulumi.String(\"rancher-charts\"),\n\t\t\tChartName: pulumi.String(\"rancher-cis-benchmark\"),\n\t\t\tSystemDefaultRegistry: pulumi.String(\"\u003csome.dns.here\u003e:\u003cPORT\u003e\"),\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.rancher2.AppV2;\nimport com.pulumi.rancher2.AppV2Args;\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 cisBenchmark = new AppV2(\"cisBenchmark\", AppV2Args.builder()\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .name(\"rancher-cis-benchmark\")\n .namespace(\"cis-operator-system\")\n .repoName(\"rancher-charts\")\n .chartName(\"rancher-cis-benchmark\")\n .systemDefaultRegistry(\"\u003csome.dns.here\u003e:\u003cPORT\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n cisBenchmark:\n type: rancher2:AppV2\n name: cis_benchmark\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n name: rancher-cis-benchmark\n namespace: cis-operator-system\n repoName: rancher-charts\n chartName: rancher-cis-benchmark\n systemDefaultRegistry: \u003csome.dns.here\u003e:\u003cPORT\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nV2 apps can be imported using the Rancher cluster ID and App V2 name, which is composed of `\u003cnamespace\u003e/\u003capplication_name\u003e`.\n\n```sh\n$ pulumi import rancher2:index/appV2:AppV2 foo \u0026lt;CLUSTER_ID\u0026gt;.\u0026lt;APP_V2_NAME\u0026gt;\n```\n", + "description": "Provides a Rancher App v2 resource. This can be used to manage helm charts for Rancher v2 environments and retrieve their information. App v2 resource is available at Rancher v2.5.x and above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\nimport * as std from \"@pulumi/std\";\n\n// Create a new Rancher2 App V2 using\nconst foo = new rancher2.AppV2(\"foo\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n name: \"rancher-monitoring\",\n namespace: \"cattle-monitoring-system\",\n repoName: \"rancher-charts\",\n chartName: \"rancher-monitoring\",\n chartVersion: \"9.4.200\",\n values: std.file({\n input: \"values.yaml\",\n }).then(invoke =\u003e invoke.result),\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\nimport pulumi_std as std\n\n# Create a new Rancher2 App V2 using\nfoo = rancher2.AppV2(\"foo\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n name=\"rancher-monitoring\",\n namespace=\"cattle-monitoring-system\",\n repo_name=\"rancher-charts\",\n chart_name=\"rancher-monitoring\",\n chart_version=\"9.4.200\",\n values=std.file(input=\"values.yaml\").result)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 App V2 using\n var foo = new Rancher2.AppV2(\"foo\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Name = \"rancher-monitoring\",\n Namespace = \"cattle-monitoring-system\",\n RepoName = \"rancher-charts\",\n ChartName = \"rancher-monitoring\",\n ChartVersion = \"9.4.200\",\n Values = Std.File.Invoke(new()\n {\n Input = \"values.yaml\",\n }).Apply(invoke =\u003e invoke.Result),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tinvokeFile, err := std.File(ctx, \u0026std.FileArgs{\n\t\t\tInput: \"values.yaml\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new Rancher2 App V2 using\n\t\t_, err = rancher2.NewAppV2(ctx, \"foo\", \u0026rancher2.AppV2Args{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tName: pulumi.String(\"rancher-monitoring\"),\n\t\t\tNamespace: pulumi.String(\"cattle-monitoring-system\"),\n\t\t\tRepoName: pulumi.String(\"rancher-charts\"),\n\t\t\tChartName: pulumi.String(\"rancher-monitoring\"),\n\t\t\tChartVersion: pulumi.String(\"9.4.200\"),\n\t\t\tValues: pulumi.String(invokeFile.Result),\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.rancher2.AppV2;\nimport com.pulumi.rancher2.AppV2Args;\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 // Create a new Rancher2 App V2 using\n var foo = new AppV2(\"foo\", AppV2Args.builder()\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .name(\"rancher-monitoring\")\n .namespace(\"cattle-monitoring-system\")\n .repoName(\"rancher-charts\")\n .chartName(\"rancher-monitoring\")\n .chartVersion(\"9.4.200\")\n .values(StdFunctions.file(FileArgs.builder()\n .input(\"values.yaml\")\n .build()).result())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 App V2 using\n foo:\n type: rancher2:AppV2\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n name: rancher-monitoring\n namespace: cattle-monitoring-system\n repoName: rancher-charts\n chartName: rancher-monitoring\n chartVersion: 9.4.200\n values:\n fn::invoke:\n function: std:file\n arguments:\n input: values.yaml\n return: result\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Create an App from a Helm Chart using a different registry\n\nThe `system_default_registry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst cisBenchmark = new rancher2.AppV2(\"cis_benchmark\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n name: \"rancher-cis-benchmark\",\n namespace: \"cis-operator-system\",\n repoName: \"rancher-charts\",\n chartName: \"rancher-cis-benchmark\",\n systemDefaultRegistry: \"\u003csome.dns.here\u003e:\u003cPORT\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\ncis_benchmark = rancher2.AppV2(\"cis_benchmark\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n name=\"rancher-cis-benchmark\",\n namespace=\"cis-operator-system\",\n repo_name=\"rancher-charts\",\n chart_name=\"rancher-cis-benchmark\",\n system_default_registry=\"\u003csome.dns.here\u003e:\u003cPORT\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var cisBenchmark = new Rancher2.AppV2(\"cis_benchmark\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Name = \"rancher-cis-benchmark\",\n Namespace = \"cis-operator-system\",\n RepoName = \"rancher-charts\",\n ChartName = \"rancher-cis-benchmark\",\n SystemDefaultRegistry = \"\u003csome.dns.here\u003e:\u003cPORT\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.NewAppV2(ctx, \"cis_benchmark\", \u0026rancher2.AppV2Args{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tName: pulumi.String(\"rancher-cis-benchmark\"),\n\t\t\tNamespace: pulumi.String(\"cis-operator-system\"),\n\t\t\tRepoName: pulumi.String(\"rancher-charts\"),\n\t\t\tChartName: pulumi.String(\"rancher-cis-benchmark\"),\n\t\t\tSystemDefaultRegistry: pulumi.String(\"\u003csome.dns.here\u003e:\u003cPORT\u003e\"),\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.rancher2.AppV2;\nimport com.pulumi.rancher2.AppV2Args;\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 cisBenchmark = new AppV2(\"cisBenchmark\", AppV2Args.builder()\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .name(\"rancher-cis-benchmark\")\n .namespace(\"cis-operator-system\")\n .repoName(\"rancher-charts\")\n .chartName(\"rancher-cis-benchmark\")\n .systemDefaultRegistry(\"\u003csome.dns.here\u003e:\u003cPORT\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n cisBenchmark:\n type: rancher2:AppV2\n name: cis_benchmark\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n name: rancher-cis-benchmark\n namespace: cis-operator-system\n repoName: rancher-charts\n chartName: rancher-cis-benchmark\n systemDefaultRegistry: \u003csome.dns.here\u003e:\u003cPORT\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nV2 apps can be imported using the Rancher cluster ID and App V2 name, which is composed of `\u003cnamespace\u003e/\u003capplication_name\u003e`.\n\n```sh\n$ pulumi import rancher2:index/appV2:AppV2 foo \u0026lt;CLUSTER_ID\u0026gt;.\u0026lt;APP_V2_NAME\u0026gt;\n```\n", "properties": { "annotations": { "type": "object", @@ -24097,7 +24097,7 @@ } }, "rancher2:index/cloudCredential:CloudCredential": { - "description": "Provides a Rancher v2 Cloud Credential resource. This can be used to create Cloud Credential for Rancher v2.2.x and retrieve their information.\n\namazonec2, azure, digitalocean, harvester, linode, openstack and vsphere credentials config are supported for Cloud Credential.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cloud Credential\nconst foo = new rancher2.CloudCredential(\"foo\", {\n name: \"foo\",\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cloud Credential\nfoo = rancher2.CloudCredential(\"foo\",\n name=\"foo\",\n description=\"foo test\",\n amazonec2_credential_config={\n \"access_key\": \"\u003cAWS_ACCESS_KEY\u003e\",\n \"secret_key\": \"\u003cAWS_SECRET_KEY\u003e\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cloud Credential\n var foo = new Rancher2.CloudCredential(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a new rancher2 Cloud Credential\n\t\t_, err := rancher2.NewCloudCredential(ctx, \"foo\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\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 // Create a new rancher2 Cloud Credential\n var foo = new CloudCredential(\"foo\", CloudCredentialArgs.builder()\n .name(\"foo\")\n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cloud Credential\n foo:\n type: rancher2:CloudCredential\n properties:\n name: foo\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Get imported harvester cluster info\nconst foo-harvester = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvester\", {\n name: \"foo-harvester\",\n harvesterCredentialConfig: {\n clusterId: foo_harvester.then(foo_harvester =\u003e foo_harvester.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvester.then(foo_harvester =\u003e foo_harvester.kubeConfig),\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Get imported harvester cluster info\nfoo_harvester = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvester\",\n name=\"foo-harvester\",\n harvester_credential_config={\n \"cluster_id\": foo_harvester.cluster_v1_id,\n \"cluster_type\": \"imported\",\n \"kubeconfig_content\": foo_harvester.kube_config,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Get imported harvester cluster info\n var foo_harvester = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvester\", new()\n {\n Name = \"foo-harvester\",\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Get imported harvester cluster info\n\t\tfoo_harvester, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new Cloud Credential for an imported Harvester cluster\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvester\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo-harvester\"),\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: pulumi.String(foo_harvester.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: pulumi.String(foo_harvester.KubeConfig),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\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 // Get imported harvester cluster info\n final var foo-harvester = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder()\n .name(\"foo-harvester\")\n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvester.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvester.kubeConfig())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n name: foo-harvester\n properties:\n name: foo-harvester\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvester\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvester\"].kubeConfig}\nvariables:\n # Get imported harvester cluster info\n foo-harvester:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nCloud Credential can be imported using the Cloud Credential ID and the Driver name.\n\nbash\n\n```sh\n$ pulumi import rancher2:index/cloudCredential:CloudCredential foo \u0026lt;CLOUD_CREDENTIAL_ID\u0026gt;.\u0026lt;DRIVER\u0026gt;\n```\n\nThe following drivers are supported:\n\n* amazonec2\n\n* azure\n\n* digitalocean\n\n* googlekubernetesengine\n\n* linode\n\n* openstack\n\n* s3\n\n* vmwarevsphere\n\n", + "description": "Provides a Rancher v2 Cloud Credential resource. This can be used to create Cloud Credential for Rancher v2.2.x and retrieve their information.\n\namazonec2, azure, digitalocean, harvester, linode, openstack and vsphere credentials config are supported for Cloud Credential.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cloud Credential\nconst foo = new rancher2.CloudCredential(\"foo\", {\n name: \"foo\",\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cloud Credential\nfoo = rancher2.CloudCredential(\"foo\",\n name=\"foo\",\n description=\"foo test\",\n amazonec2_credential_config={\n \"access_key\": \"\u003cAWS_ACCESS_KEY\u003e\",\n \"secret_key\": \"\u003cAWS_SECRET_KEY\u003e\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cloud Credential\n var foo = new Rancher2.CloudCredential(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a new rancher2 Cloud Credential\n\t\t_, err := rancher2.NewCloudCredential(ctx, \"foo\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\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 // Create a new rancher2 Cloud Credential\n var foo = new CloudCredential(\"foo\", CloudCredentialArgs.builder()\n .name(\"foo\")\n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cloud Credential\n foo:\n type: rancher2:CloudCredential\n properties:\n name: foo\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Get imported harvester cluster info\nconst foo-harvester = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvester\", {\n name: \"foo-harvester\",\n harvesterCredentialConfig: {\n clusterId: foo_harvester.then(foo_harvester =\u003e foo_harvester.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvester.then(foo_harvester =\u003e foo_harvester.kubeConfig),\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Get imported harvester cluster info\nfoo_harvester = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvester\",\n name=\"foo-harvester\",\n harvester_credential_config={\n \"cluster_id\": foo_harvester.cluster_v1_id,\n \"cluster_type\": \"imported\",\n \"kubeconfig_content\": foo_harvester.kube_config,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Get imported harvester cluster info\n var foo_harvester = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvester\", new()\n {\n Name = \"foo-harvester\",\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Get imported harvester cluster info\n\t\tfoo_harvester, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new Cloud Credential for an imported Harvester cluster\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvester\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo-harvester\"),\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: pulumi.String(foo_harvester.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: pulumi.String(foo_harvester.KubeConfig),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\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 // Get imported harvester cluster info\n final var foo-harvester = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder()\n .name(\"foo-harvester\")\n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvester.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvester.kubeConfig())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n name: foo-harvester\n properties:\n name: foo-harvester\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvester\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvester\"].kubeConfig}\nvariables:\n # Get imported harvester cluster info\n foo-harvester:\n fn::invoke:\n function: rancher2:getClusterV2\n arguments:\n name: foo-harvester\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nCloud Credential can be imported using the Cloud Credential ID and the Driver name.\n\nbash\n\n```sh\n$ pulumi import rancher2:index/cloudCredential:CloudCredential foo \u0026lt;CLOUD_CREDENTIAL_ID\u0026gt;.\u0026lt;DRIVER\u0026gt;\n```\n\nThe following drivers are supported:\n\n* amazonec2\n\n* azure\n\n* digitalocean\n\n* googlekubernetesengine\n\n* linode\n\n* openstack\n\n* s3\n\n* vmwarevsphere\n\n", "properties": { "amazonec2CredentialConfig": { "$ref": "#/types/rancher2:index/CloudCredentialAmazonec2CredentialConfig:CloudCredentialAmazonec2CredentialConfig", @@ -25854,7 +25854,7 @@ } }, "rancher2:index/customUserToken:CustomUserToken": { - "description": "Provides a Rancher v2 Token resource, specifically to create tokens for custom users (i.e. not the 'admin' user configured with the provider config). Custom user tokens can f.e. be used as service account tokens with the Rancher v2 API having limited permissions. To create a custom user token the username/password for the Rancher User must be known.\n\nThere are 2 kind of tokens:\n- not scoped: valid for global system.\n- scoped: valid for just a specific cluster (`cluster_id` should be provided).\n\nTokens can only be created for a Rancher User with at least the `user-base` global role binding in order to enable user login.\n\nTokens can't be updated once created. Any diff in token data will recreate the token. If any token expire, Rancher2 provider will generate a diff to regenerate it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a rancher2 Token\nconst foo = new rancher2.User(\"foo\", {\n name: \"foo\",\n username: \"foo\",\n password: \"changeme\",\n enabled: true,\n});\nconst foo_login = new rancher2.GlobalRoleBinding(\"foo-login\", {\n name: \"foo-login-binding\",\n globalRoleId: \"user-base\",\n userId: foo.id,\n});\nconst fooCustomUserToken = new rancher2.CustomUserToken(\"foo\", {\n username: foo.username,\n password: foo.password,\n description: \"foo token\",\n ttl: 0,\n}, {\n dependsOn: [foo_login],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a rancher2 Token\nfoo = rancher2.User(\"foo\",\n name=\"foo\",\n username=\"foo\",\n password=\"changeme\",\n enabled=True)\nfoo_login = rancher2.GlobalRoleBinding(\"foo-login\",\n name=\"foo-login-binding\",\n global_role_id=\"user-base\",\n user_id=foo.id)\nfoo_custom_user_token = rancher2.CustomUserToken(\"foo\",\n username=foo.username,\n password=foo.password,\n description=\"foo token\",\n ttl=0,\n opts = pulumi.ResourceOptions(depends_on=[foo_login]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a rancher2 Token\n var foo = new Rancher2.User(\"foo\", new()\n {\n Name = \"foo\",\n Username = \"foo\",\n Password = \"changeme\",\n Enabled = true,\n });\n\n var foo_login = new Rancher2.GlobalRoleBinding(\"foo-login\", new()\n {\n Name = \"foo-login-binding\",\n GlobalRoleId = \"user-base\",\n UserId = foo.Id,\n });\n\n var fooCustomUserToken = new Rancher2.CustomUserToken(\"foo\", new()\n {\n Username = foo.Username,\n Password = foo.Password,\n Description = \"foo token\",\n Ttl = 0,\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n foo_login,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a rancher2 Token\n\t\tfoo, err := rancher2.NewUser(ctx, \"foo\", \u0026rancher2.UserArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tUsername: pulumi.String(\"foo\"),\n\t\t\tPassword: pulumi.String(\"changeme\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalRoleBinding(ctx, \"foo-login\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tName: pulumi.String(\"foo-login-binding\"),\n\t\t\tGlobalRoleId: pulumi.String(\"user-base\"),\n\t\t\tUserId: foo.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCustomUserToken(ctx, \"foo\", \u0026rancher2.CustomUserTokenArgs{\n\t\t\tUsername: foo.Username,\n\t\t\tPassword: foo.Password,\n\t\t\tDescription: pulumi.String(\"foo token\"),\n\t\t\tTtl: pulumi.Int(0),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tfoo_login,\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.rancher2.User;\nimport com.pulumi.rancher2.UserArgs;\nimport com.pulumi.rancher2.GlobalRoleBinding;\nimport com.pulumi.rancher2.GlobalRoleBindingArgs;\nimport com.pulumi.rancher2.CustomUserToken;\nimport com.pulumi.rancher2.CustomUserTokenArgs;\nimport com.pulumi.resources.CustomResourceOptions;\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 // Create a rancher2 Token\n var foo = new User(\"foo\", UserArgs.builder()\n .name(\"foo\")\n .username(\"foo\")\n .password(\"changeme\")\n .enabled(true)\n .build());\n\n var foo_login = new GlobalRoleBinding(\"foo-login\", GlobalRoleBindingArgs.builder()\n .name(\"foo-login-binding\")\n .globalRoleId(\"user-base\")\n .userId(foo.id())\n .build());\n\n var fooCustomUserToken = new CustomUserToken(\"fooCustomUserToken\", CustomUserTokenArgs.builder()\n .username(foo.username())\n .password(foo.password())\n .description(\"foo token\")\n .ttl(0)\n .build(), CustomResourceOptions.builder()\n .dependsOn(foo_login)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a rancher2 Token\n foo:\n type: rancher2:User\n properties:\n name: foo\n username: foo\n password: changeme\n enabled: true\n foo-login:\n type: rancher2:GlobalRoleBinding\n properties:\n name: foo-login-binding\n globalRoleId: user-base\n userId: ${foo.id}\n fooCustomUserToken:\n type: rancher2:CustomUserToken\n name: foo\n properties:\n username: ${foo.username}\n password: ${foo.password}\n description: foo token\n ttl: 0\n options:\n dependson:\n - ${[\"foo-login\"]}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Provides a Rancher v2 Token resource, specifically to create tokens for custom users (i.e. not the 'admin' user configured with the provider config). Custom user tokens can f.e. be used as service account tokens with the Rancher v2 API having limited permissions. To create a custom user token the username/password for the Rancher User must be known.\n\nThere are 2 kind of tokens:\n- not scoped: valid for global system.\n- scoped: valid for just a specific cluster (`cluster_id` should be provided).\n\nTokens can only be created for a Rancher User with at least the `user-base` global role binding in order to enable user login.\n\nTokens can't be updated once created. Any diff in token data will recreate the token. If any token expire, Rancher2 provider will generate a diff to regenerate it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a rancher2 Token\nconst foo = new rancher2.User(\"foo\", {\n name: \"foo\",\n username: \"foo\",\n password: \"changeme\",\n enabled: true,\n});\nconst foo_login = new rancher2.GlobalRoleBinding(\"foo-login\", {\n name: \"foo-login-binding\",\n globalRoleId: \"user-base\",\n userId: foo.id,\n});\nconst fooCustomUserToken = new rancher2.CustomUserToken(\"foo\", {\n username: foo.username,\n password: foo.password,\n description: \"foo token\",\n ttl: 0,\n}, {\n dependsOn: [foo_login],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a rancher2 Token\nfoo = rancher2.User(\"foo\",\n name=\"foo\",\n username=\"foo\",\n password=\"changeme\",\n enabled=True)\nfoo_login = rancher2.GlobalRoleBinding(\"foo-login\",\n name=\"foo-login-binding\",\n global_role_id=\"user-base\",\n user_id=foo.id)\nfoo_custom_user_token = rancher2.CustomUserToken(\"foo\",\n username=foo.username,\n password=foo.password,\n description=\"foo token\",\n ttl=0,\n opts = pulumi.ResourceOptions(depends_on=[foo_login]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a rancher2 Token\n var foo = new Rancher2.User(\"foo\", new()\n {\n Name = \"foo\",\n Username = \"foo\",\n Password = \"changeme\",\n Enabled = true,\n });\n\n var foo_login = new Rancher2.GlobalRoleBinding(\"foo-login\", new()\n {\n Name = \"foo-login-binding\",\n GlobalRoleId = \"user-base\",\n UserId = foo.Id,\n });\n\n var fooCustomUserToken = new Rancher2.CustomUserToken(\"foo\", new()\n {\n Username = foo.Username,\n Password = foo.Password,\n Description = \"foo token\",\n Ttl = 0,\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n foo_login,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a rancher2 Token\n\t\tfoo, err := rancher2.NewUser(ctx, \"foo\", \u0026rancher2.UserArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tUsername: pulumi.String(\"foo\"),\n\t\t\tPassword: pulumi.String(\"changeme\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalRoleBinding(ctx, \"foo-login\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tName: pulumi.String(\"foo-login-binding\"),\n\t\t\tGlobalRoleId: pulumi.String(\"user-base\"),\n\t\t\tUserId: foo.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCustomUserToken(ctx, \"foo\", \u0026rancher2.CustomUserTokenArgs{\n\t\t\tUsername: foo.Username,\n\t\t\tPassword: foo.Password,\n\t\t\tDescription: pulumi.String(\"foo token\"),\n\t\t\tTtl: pulumi.Int(0),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tfoo_login,\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.rancher2.User;\nimport com.pulumi.rancher2.UserArgs;\nimport com.pulumi.rancher2.GlobalRoleBinding;\nimport com.pulumi.rancher2.GlobalRoleBindingArgs;\nimport com.pulumi.rancher2.CustomUserToken;\nimport com.pulumi.rancher2.CustomUserTokenArgs;\nimport com.pulumi.resources.CustomResourceOptions;\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 // Create a rancher2 Token\n var foo = new User(\"foo\", UserArgs.builder()\n .name(\"foo\")\n .username(\"foo\")\n .password(\"changeme\")\n .enabled(true)\n .build());\n\n var foo_login = new GlobalRoleBinding(\"foo-login\", GlobalRoleBindingArgs.builder()\n .name(\"foo-login-binding\")\n .globalRoleId(\"user-base\")\n .userId(foo.id())\n .build());\n\n var fooCustomUserToken = new CustomUserToken(\"fooCustomUserToken\", CustomUserTokenArgs.builder()\n .username(foo.username())\n .password(foo.password())\n .description(\"foo token\")\n .ttl(0)\n .build(), CustomResourceOptions.builder()\n .dependsOn(foo_login)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a rancher2 Token\n foo:\n type: rancher2:User\n properties:\n name: foo\n username: foo\n password: changeme\n enabled: true\n foo-login:\n type: rancher2:GlobalRoleBinding\n properties:\n name: foo-login-binding\n globalRoleId: user-base\n userId: ${foo.id}\n fooCustomUserToken:\n type: rancher2:CustomUserToken\n name: foo\n properties:\n username: ${foo.username}\n password: ${foo.password}\n description: foo token\n ttl: 0\n options:\n dependsOn:\n - ${[\"foo-login\"]}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "accessKey": { "type": "string", @@ -26595,7 +26595,7 @@ } }, "rancher2:index/machineConfigV2:MachineConfigV2": { - "description": "Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above.\n\nThe supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`.\n\n### Using the Harvester Node Driver\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Get imported harvester cluster info\nconst foo-harvester = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvester\", {\n name: \"foo-harvester\",\n harvesterCredentialConfig: {\n clusterId: foo_harvester.then(foo_harvester =\u003e foo_harvester.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvester.then(foo_harvester =\u003e foo_harvester.kubeConfig),\n },\n});\n// Create a new rancher2 machine config v2 using harvester node_driver\nconst foo_harvester_v2 = new rancher2.MachineConfigV2(\"foo-harvester-v2\", {\n generateName: \"foo-harvester-v2\",\n harvesterConfig: {\n vmNamespace: \"default\",\n cpuCount: \"2\",\n memorySize: \"4\",\n diskInfo: ` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n`,\n networkInfo: ` {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n`,\n sshUser: \"ubuntu\",\n userData: ` package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Get imported harvester cluster info\nfoo_harvester = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvester\",\n name=\"foo-harvester\",\n harvester_credential_config={\n \"cluster_id\": foo_harvester.cluster_v1_id,\n \"cluster_type\": \"imported\",\n \"kubeconfig_content\": foo_harvester.kube_config,\n })\n# Create a new rancher2 machine config v2 using harvester node_driver\nfoo_harvester_v2 = rancher2.MachineConfigV2(\"foo-harvester-v2\",\n generate_name=\"foo-harvester-v2\",\n harvester_config={\n \"vm_namespace\": \"default\",\n \"cpu_count\": \"2\",\n \"memory_size\": \"4\",\n \"disk_info\": \"\"\" {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n\"\"\",\n \"network_info\": \"\"\" {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n\"\"\",\n \"ssh_user\": \"ubuntu\",\n \"user_data\": \"\"\" package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\"\"\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Get imported harvester cluster info\n var foo_harvester = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvester\", new()\n {\n Name = \"foo-harvester\",\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n // Create a new rancher2 machine config v2 using harvester node_driver\n var foo_harvester_v2 = new Rancher2.MachineConfigV2(\"foo-harvester-v2\", new()\n {\n GenerateName = \"foo-harvester-v2\",\n HarvesterConfig = new Rancher2.Inputs.MachineConfigV2HarvesterConfigArgs\n {\n VmNamespace = \"default\",\n CpuCount = \"2\",\n MemorySize = \"4\",\n DiskInfo = @\" {\n \"\"disks\"\": [{\n \"\"imageName\"\": \"\"harvester-public/image-57hzg\"\",\n \"\"size\"\": 40,\n \"\"bootOrder\"\": 1\n }]\n }\n\",\n NetworkInfo = @\" {\n \"\"interfaces\"\": [{\n \"\"networkName\"\": \"\"harvester-public/vlan1\"\"\n }]\n }\n\",\n SshUser = \"ubuntu\",\n UserData = @\" package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Get imported harvester cluster info\n\t\tfoo_harvester, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new Cloud Credential for an imported Harvester cluster\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvester\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo-harvester\"),\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: pulumi.String(foo_harvester.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: pulumi.String(foo_harvester.KubeConfig),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new rancher2 machine config v2 using harvester node_driver\n\t\t_, err = rancher2.NewMachineConfigV2(ctx, \"foo-harvester-v2\", \u0026rancher2.MachineConfigV2Args{\n\t\t\tGenerateName: pulumi.String(\"foo-harvester-v2\"),\n\t\t\tHarvesterConfig: \u0026rancher2.MachineConfigV2HarvesterConfigArgs{\n\t\t\t\tVmNamespace: pulumi.String(\"default\"),\n\t\t\t\tCpuCount: pulumi.String(\"2\"),\n\t\t\t\tMemorySize: pulumi.String(\"4\"),\n\t\t\t\tDiskInfo: pulumi.String(` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n`),\n\t\t\t\tNetworkInfo: pulumi.String(` {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n`),\n\t\t\t\tSshUser: pulumi.String(\"ubuntu\"),\n\t\t\t\tUserData: pulumi.String(` package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport com.pulumi.rancher2.MachineConfigV2;\nimport com.pulumi.rancher2.MachineConfigV2Args;\nimport com.pulumi.rancher2.inputs.MachineConfigV2HarvesterConfigArgs;\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 // Get imported harvester cluster info\n final var foo-harvester = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder()\n .name(\"foo-harvester\")\n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvester.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvester.kubeConfig())\n .build())\n .build());\n\n // Create a new rancher2 machine config v2 using harvester node_driver\n var foo_harvester_v2 = new MachineConfigV2(\"foo-harvester-v2\", MachineConfigV2Args.builder()\n .generateName(\"foo-harvester-v2\")\n .harvesterConfig(MachineConfigV2HarvesterConfigArgs.builder()\n .vmNamespace(\"default\")\n .cpuCount(\"2\")\n .memorySize(\"4\")\n .diskInfo(\"\"\"\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n \"\"\")\n .networkInfo(\"\"\"\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n \"\"\")\n .sshUser(\"ubuntu\")\n .userData(\"\"\"\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n name: foo-harvester\n properties:\n name: foo-harvester\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvester\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvester\"].kubeConfig}\n # Create a new rancher2 machine config v2 using harvester node_driver\n foo-harvester-v2:\n type: rancher2:MachineConfigV2\n properties:\n generateName: foo-harvester-v2\n harvesterConfig:\n vmNamespace: default\n cpuCount: '2'\n memorySize: '4'\n diskInfo: |2\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n networkInfo: |2\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n sshUser: ubuntu\n userData: |2\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\nvariables:\n # Get imported harvester cluster info\n foo-harvester:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above.\n\nThe supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`.\n\n### Using the Harvester Node Driver\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Get imported harvester cluster info\nconst foo-harvester = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvester\", {\n name: \"foo-harvester\",\n harvesterCredentialConfig: {\n clusterId: foo_harvester.then(foo_harvester =\u003e foo_harvester.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvester.then(foo_harvester =\u003e foo_harvester.kubeConfig),\n },\n});\n// Create a new rancher2 machine config v2 using harvester node_driver\nconst foo_harvester_v2 = new rancher2.MachineConfigV2(\"foo-harvester-v2\", {\n generateName: \"foo-harvester-v2\",\n harvesterConfig: {\n vmNamespace: \"default\",\n cpuCount: \"2\",\n memorySize: \"4\",\n diskInfo: ` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n`,\n networkInfo: ` {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n`,\n sshUser: \"ubuntu\",\n userData: ` package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Get imported harvester cluster info\nfoo_harvester = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvester\",\n name=\"foo-harvester\",\n harvester_credential_config={\n \"cluster_id\": foo_harvester.cluster_v1_id,\n \"cluster_type\": \"imported\",\n \"kubeconfig_content\": foo_harvester.kube_config,\n })\n# Create a new rancher2 machine config v2 using harvester node_driver\nfoo_harvester_v2 = rancher2.MachineConfigV2(\"foo-harvester-v2\",\n generate_name=\"foo-harvester-v2\",\n harvester_config={\n \"vm_namespace\": \"default\",\n \"cpu_count\": \"2\",\n \"memory_size\": \"4\",\n \"disk_info\": \"\"\" {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n\"\"\",\n \"network_info\": \"\"\" {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n\"\"\",\n \"ssh_user\": \"ubuntu\",\n \"user_data\": \"\"\" package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\"\"\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Get imported harvester cluster info\n var foo_harvester = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvester\", new()\n {\n Name = \"foo-harvester\",\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n // Create a new rancher2 machine config v2 using harvester node_driver\n var foo_harvester_v2 = new Rancher2.MachineConfigV2(\"foo-harvester-v2\", new()\n {\n GenerateName = \"foo-harvester-v2\",\n HarvesterConfig = new Rancher2.Inputs.MachineConfigV2HarvesterConfigArgs\n {\n VmNamespace = \"default\",\n CpuCount = \"2\",\n MemorySize = \"4\",\n DiskInfo = @\" {\n \"\"disks\"\": [{\n \"\"imageName\"\": \"\"harvester-public/image-57hzg\"\",\n \"\"size\"\": 40,\n \"\"bootOrder\"\": 1\n }]\n }\n\",\n NetworkInfo = @\" {\n \"\"interfaces\"\": [{\n \"\"networkName\"\": \"\"harvester-public/vlan1\"\"\n }]\n }\n\",\n SshUser = \"ubuntu\",\n UserData = @\" package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Get imported harvester cluster info\n\t\tfoo_harvester, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new Cloud Credential for an imported Harvester cluster\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvester\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo-harvester\"),\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: pulumi.String(foo_harvester.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: pulumi.String(foo_harvester.KubeConfig),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new rancher2 machine config v2 using harvester node_driver\n\t\t_, err = rancher2.NewMachineConfigV2(ctx, \"foo-harvester-v2\", \u0026rancher2.MachineConfigV2Args{\n\t\t\tGenerateName: pulumi.String(\"foo-harvester-v2\"),\n\t\t\tHarvesterConfig: \u0026rancher2.MachineConfigV2HarvesterConfigArgs{\n\t\t\t\tVmNamespace: pulumi.String(\"default\"),\n\t\t\t\tCpuCount: pulumi.String(\"2\"),\n\t\t\t\tMemorySize: pulumi.String(\"4\"),\n\t\t\t\tDiskInfo: pulumi.String(` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n`),\n\t\t\t\tNetworkInfo: pulumi.String(` {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n`),\n\t\t\t\tSshUser: pulumi.String(\"ubuntu\"),\n\t\t\t\tUserData: pulumi.String(` package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport com.pulumi.rancher2.MachineConfigV2;\nimport com.pulumi.rancher2.MachineConfigV2Args;\nimport com.pulumi.rancher2.inputs.MachineConfigV2HarvesterConfigArgs;\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 // Get imported harvester cluster info\n final var foo-harvester = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder()\n .name(\"foo-harvester\")\n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvester.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvester.kubeConfig())\n .build())\n .build());\n\n // Create a new rancher2 machine config v2 using harvester node_driver\n var foo_harvester_v2 = new MachineConfigV2(\"foo-harvester-v2\", MachineConfigV2Args.builder()\n .generateName(\"foo-harvester-v2\")\n .harvesterConfig(MachineConfigV2HarvesterConfigArgs.builder()\n .vmNamespace(\"default\")\n .cpuCount(\"2\")\n .memorySize(\"4\")\n .diskInfo(\"\"\"\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n \"\"\")\n .networkInfo(\"\"\"\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n \"\"\")\n .sshUser(\"ubuntu\")\n .userData(\"\"\"\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n name: foo-harvester\n properties:\n name: foo-harvester\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvester\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvester\"].kubeConfig}\n # Create a new rancher2 machine config v2 using harvester node_driver\n foo-harvester-v2:\n type: rancher2:MachineConfigV2\n properties:\n generateName: foo-harvester-v2\n harvesterConfig:\n vmNamespace: default\n cpuCount: '2'\n memorySize: '4'\n diskInfo: |2\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n networkInfo: |2\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n sshUser: ubuntu\n userData: |2\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\nvariables:\n # Get imported harvester cluster info\n foo-harvester:\n fn::invoke:\n function: rancher2:getClusterV2\n arguments:\n name: foo-harvester\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "amazonec2Config": { "$ref": "#/types/rancher2:index/MachineConfigV2Amazonec2Config:MachineConfigV2Amazonec2Config", @@ -27599,7 +27599,7 @@ } }, "rancher2:index/nodeTemplate:NodeTemplate": { - "description": "Provides a Rancher v2 Node Template resource. This can be used to create Node Template for Rancher v2 and retrieve their information.\n\namazonec2, azure, digitalocean, harvester, linode, opennebula, openstack, outscale, hetzner and vsphere drivers are supported for node templates.\n\n**Note:** If you are upgrading to Rancher v2.3.3, please take a look to final section\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template up to Rancher 2.1.x\nconst foo = new rancher2.NodeTemplate(\"foo\", {\n name: \"foo\",\n description: \"foo test\",\n amazonec2Config: {\n accessKey: \"AWS_ACCESS_KEY\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template up to Rancher 2.1.x\nfoo = rancher2.NodeTemplate(\"foo\",\n name=\"foo\",\n description=\"foo test\",\n amazonec2_config={\n \"access_key\": \"AWS_ACCESS_KEY\",\n \"secret_key\": \"\u003cAWS_SECRET_KEY\u003e\",\n \"ami\": \"\u003cAMI_ID\u003e\",\n \"region\": \"\u003cREGION\u003e\",\n \"security_groups\": [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n \"subnet_id\": \"\u003cSUBNET_ID\u003e\",\n \"vpc_id\": \"\u003cVPC_ID\u003e\",\n \"zone\": \"\u003cZONE\u003e\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template up to Rancher 2.1.x\n var foo = new Rancher2.NodeTemplate(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"foo test\",\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n AccessKey = \"AWS_ACCESS_KEY\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a new rancher2 Node Template up to Rancher 2.1.x\n\t\t_, err := rancher2.NewNodeTemplate(ctx, \"foo\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"AWS_ACCESS_KEY\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\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.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\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 // Create a new rancher2 Node Template up to Rancher 2.1.x\n var foo = new NodeTemplate(\"foo\", NodeTemplateArgs.builder()\n .name(\"foo\")\n .description(\"foo test\")\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .accessKey(\"AWS_ACCESS_KEY\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template up to Rancher 2.1.x\n foo:\n type: rancher2:NodeTemplate\n properties:\n name: foo\n description: foo test\n amazonec2Config:\n accessKey: AWS_ACCESS_KEY\n secretKey: \u003cAWS_SECRET_KEY\u003e\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template from Rancher 2.2.x\nconst foo = new rancher2.CloudCredential(\"foo\", {\n name: \"foo\",\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooNodeTemplate = new rancher2.NodeTemplate(\"foo\", {\n name: \"foo\",\n description: \"foo test\",\n cloudCredentialId: foo.id,\n amazonec2Config: {\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template from Rancher 2.2.x\nfoo = rancher2.CloudCredential(\"foo\",\n name=\"foo\",\n description=\"foo test\",\n amazonec2_credential_config={\n \"access_key\": \"\u003cAWS_ACCESS_KEY\u003e\",\n \"secret_key\": \"\u003cAWS_SECRET_KEY\u003e\",\n })\nfoo_node_template = rancher2.NodeTemplate(\"foo\",\n name=\"foo\",\n description=\"foo test\",\n cloud_credential_id=foo.id,\n amazonec2_config={\n \"ami\": \"\u003cAMI_ID\u003e\",\n \"region\": \"\u003cREGION\u003e\",\n \"security_groups\": [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n \"subnet_id\": \"\u003cSUBNET_ID\u003e\",\n \"vpc_id\": \"\u003cVPC_ID\u003e\",\n \"zone\": \"\u003cZONE\u003e\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template from Rancher 2.2.x\n var foo = new Rancher2.CloudCredential(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooNodeTemplate = new Rancher2.NodeTemplate(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"foo test\",\n CloudCredentialId = foo.Id,\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a new rancher2 Node Template from Rancher 2.2.x\n\t\tfoo, err := rancher2.NewCloudCredential(ctx, \"foo\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"foo\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tCloudCredentialId: foo.ID(),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\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 // Create a new rancher2 Node Template from Rancher 2.2.x\n var foo = new CloudCredential(\"foo\", CloudCredentialArgs.builder()\n .name(\"foo\")\n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooNodeTemplate = new NodeTemplate(\"fooNodeTemplate\", NodeTemplateArgs.builder()\n .name(\"foo\")\n .description(\"foo test\")\n .cloudCredentialId(foo.id())\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template from Rancher 2.2.x\n foo:\n type: rancher2:CloudCredential\n properties:\n name: foo\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooNodeTemplate:\n type: rancher2:NodeTemplate\n name: foo\n properties:\n name: foo\n description: foo test\n cloudCredentialId: ${foo.id}\n amazonec2Config:\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Using the Harvester Node Driver\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Get imported harvester cluster info\nconst foo-harvester = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvester\", {\n name: \"foo-harvester\",\n harvesterCredentialConfig: {\n clusterId: foo_harvester.then(foo_harvester =\u003e foo_harvester.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvester.then(foo_harvester =\u003e foo_harvester.kubeConfig),\n },\n});\n// Create a new rancher2 Node Template using harvester node_driver\nconst foo_harvesterNodeTemplate = new rancher2.NodeTemplate(\"foo-harvester\", {\n name: \"foo-harvester\",\n cloudCredentialId: foo_harvesterCloudCredential.id,\n engineInstallUrl: \"https://releases.rancher.com/install-docker/20.10.sh\",\n harvesterConfig: {\n vmNamespace: \"default\",\n cpuCount: \"2\",\n memorySize: \"4\",\n diskInfo: ` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n`,\n networkInfo: ` {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n`,\n sshUser: \"ubuntu\",\n userData: ` package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Get imported harvester cluster info\nfoo_harvester = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvester\",\n name=\"foo-harvester\",\n harvester_credential_config={\n \"cluster_id\": foo_harvester.cluster_v1_id,\n \"cluster_type\": \"imported\",\n \"kubeconfig_content\": foo_harvester.kube_config,\n })\n# Create a new rancher2 Node Template using harvester node_driver\nfoo_harvester_node_template = rancher2.NodeTemplate(\"foo-harvester\",\n name=\"foo-harvester\",\n cloud_credential_id=foo_harvester_cloud_credential.id,\n engine_install_url=\"https://releases.rancher.com/install-docker/20.10.sh\",\n harvester_config={\n \"vm_namespace\": \"default\",\n \"cpu_count\": \"2\",\n \"memory_size\": \"4\",\n \"disk_info\": \"\"\" {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n\"\"\",\n \"network_info\": \"\"\" {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n\"\"\",\n \"ssh_user\": \"ubuntu\",\n \"user_data\": \"\"\" package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\"\"\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Get imported harvester cluster info\n var foo_harvester = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvester\", new()\n {\n Name = \"foo-harvester\",\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n // Create a new rancher2 Node Template using harvester node_driver\n var foo_harvesterNodeTemplate = new Rancher2.NodeTemplate(\"foo-harvester\", new()\n {\n Name = \"foo-harvester\",\n CloudCredentialId = foo_harvesterCloudCredential.Id,\n EngineInstallUrl = \"https://releases.rancher.com/install-docker/20.10.sh\",\n HarvesterConfig = new Rancher2.Inputs.NodeTemplateHarvesterConfigArgs\n {\n VmNamespace = \"default\",\n CpuCount = \"2\",\n MemorySize = \"4\",\n DiskInfo = @\" {\n \"\"disks\"\": [{\n \"\"imageName\"\": \"\"harvester-public/image-57hzg\"\",\n \"\"size\"\": 40,\n \"\"bootOrder\"\": 1\n }]\n }\n\",\n NetworkInfo = @\" {\n \"\"interfaces\"\": [{\n \"\"networkName\"\": \"\"harvester-public/vlan1\"\"\n }]\n }\n\",\n SshUser = \"ubuntu\",\n UserData = @\" package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Get imported harvester cluster info\n\t\tfoo_harvester, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new Cloud Credential for an imported Harvester cluster\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvester\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo-harvester\"),\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: pulumi.String(foo_harvester.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: pulumi.String(foo_harvester.KubeConfig),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new rancher2 Node Template using harvester node_driver\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"foo-harvester\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tName: pulumi.String(\"foo-harvester\"),\n\t\t\tCloudCredentialId: foo_harvesterCloudCredential.ID(),\n\t\t\tEngineInstallUrl: pulumi.String(\"https://releases.rancher.com/install-docker/20.10.sh\"),\n\t\t\tHarvesterConfig: \u0026rancher2.NodeTemplateHarvesterConfigArgs{\n\t\t\t\tVmNamespace: pulumi.String(\"default\"),\n\t\t\t\tCpuCount: pulumi.String(\"2\"),\n\t\t\t\tMemorySize: pulumi.String(\"4\"),\n\t\t\t\tDiskInfo: pulumi.String(` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n`),\n\t\t\t\tNetworkInfo: pulumi.String(` {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n`),\n\t\t\t\tSshUser: pulumi.String(\"ubuntu\"),\n\t\t\t\tUserData: pulumi.String(` package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateHarvesterConfigArgs;\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 // Get imported harvester cluster info\n final var foo-harvester = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder()\n .name(\"foo-harvester\")\n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvester.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvester.kubeConfig())\n .build())\n .build());\n\n // Create a new rancher2 Node Template using harvester node_driver\n var foo_harvesterNodeTemplate = new NodeTemplate(\"foo-harvesterNodeTemplate\", NodeTemplateArgs.builder()\n .name(\"foo-harvester\")\n .cloudCredentialId(foo_harvesterCloudCredential.id())\n .engineInstallUrl(\"https://releases.rancher.com/install-docker/20.10.sh\")\n .harvesterConfig(NodeTemplateHarvesterConfigArgs.builder()\n .vmNamespace(\"default\")\n .cpuCount(\"2\")\n .memorySize(\"4\")\n .diskInfo(\"\"\"\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n \"\"\")\n .networkInfo(\"\"\"\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n \"\"\")\n .sshUser(\"ubuntu\")\n .userData(\"\"\"\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n name: foo-harvester\n properties:\n name: foo-harvester\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvester\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvester\"].kubeConfig}\n # Create a new rancher2 Node Template using harvester node_driver\n foo-harvesterNodeTemplate:\n type: rancher2:NodeTemplate\n name: foo-harvester\n properties:\n name: foo-harvester\n cloudCredentialId: ${[\"foo-harvesterCloudCredential\"].id}\n engineInstallUrl: https://releases.rancher.com/install-docker/20.10.sh\n harvesterConfig:\n vmNamespace: default\n cpuCount: '2'\n memorySize: '4'\n diskInfo: |2\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n networkInfo: |2\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n sshUser: ubuntu\n userData: |2\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\nvariables:\n # Get imported harvester cluster info\n foo-harvester:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Using the Hetzner Node Driver\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template using hetzner node_driver\nconst hetznerNodeDriver = new rancher2.NodeDriver(\"hetzner_node_driver\", {\n active: true,\n builtin: false,\n name: \"Hetzner\",\n uiUrl: \"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n url: \"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n whitelistDomains: [\"storage.googleapis.com\"],\n});\nconst myHetznerNodeTemplate = new rancher2.NodeTemplate(\"my_hetzner_node_template\", {\n name: \"my-hetzner-node-template\",\n driverId: hetznerNodeDriver.id,\n hetznerConfig: {\n apiToken: \"XXXXXXXXXX\",\n image: \"ubuntu-18.04\",\n serverLocation: \"nbg1\",\n serverType: \"cx11\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template using hetzner node_driver\nhetzner_node_driver = rancher2.NodeDriver(\"hetzner_node_driver\",\n active=True,\n builtin=False,\n name=\"Hetzner\",\n ui_url=\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n url=\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n whitelist_domains=[\"storage.googleapis.com\"])\nmy_hetzner_node_template = rancher2.NodeTemplate(\"my_hetzner_node_template\",\n name=\"my-hetzner-node-template\",\n driver_id=hetzner_node_driver.id,\n hetzner_config={\n \"api_token\": \"XXXXXXXXXX\",\n \"image\": \"ubuntu-18.04\",\n \"server_location\": \"nbg1\",\n \"server_type\": \"cx11\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template using hetzner node_driver\n var hetznerNodeDriver = new Rancher2.NodeDriver(\"hetzner_node_driver\", new()\n {\n Active = true,\n Builtin = false,\n Name = \"Hetzner\",\n UiUrl = \"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n Url = \"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n WhitelistDomains = new[]\n {\n \"storage.googleapis.com\",\n },\n });\n\n var myHetznerNodeTemplate = new Rancher2.NodeTemplate(\"my_hetzner_node_template\", new()\n {\n Name = \"my-hetzner-node-template\",\n DriverId = hetznerNodeDriver.Id,\n HetznerConfig = new Rancher2.Inputs.NodeTemplateHetznerConfigArgs\n {\n ApiToken = \"XXXXXXXXXX\",\n Image = \"ubuntu-18.04\",\n ServerLocation = \"nbg1\",\n ServerType = \"cx11\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a new rancher2 Node Template using hetzner node_driver\n\t\thetznerNodeDriver, err := rancher2.NewNodeDriver(ctx, \"hetzner_node_driver\", \u0026rancher2.NodeDriverArgs{\n\t\t\tActive: pulumi.Bool(true),\n\t\t\tBuiltin: pulumi.Bool(false),\n\t\t\tName: pulumi.String(\"Hetzner\"),\n\t\t\tUiUrl: pulumi.String(\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\"),\n\t\t\tUrl: pulumi.String(\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\"),\n\t\t\tWhitelistDomains: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"storage.googleapis.com\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"my_hetzner_node_template\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tName: pulumi.String(\"my-hetzner-node-template\"),\n\t\t\tDriverId: hetznerNodeDriver.ID(),\n\t\t\tHetznerConfig: \u0026rancher2.NodeTemplateHetznerConfigArgs{\n\t\t\t\tApiToken: pulumi.String(\"XXXXXXXXXX\"),\n\t\t\t\tImage: pulumi.String(\"ubuntu-18.04\"),\n\t\t\t\tServerLocation: pulumi.String(\"nbg1\"),\n\t\t\t\tServerType: pulumi.String(\"cx11\"),\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.rancher2.NodeDriver;\nimport com.pulumi.rancher2.NodeDriverArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateHetznerConfigArgs;\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 // Create a new rancher2 Node Template using hetzner node_driver\n var hetznerNodeDriver = new NodeDriver(\"hetznerNodeDriver\", NodeDriverArgs.builder()\n .active(true)\n .builtin(false)\n .name(\"Hetzner\")\n .uiUrl(\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\")\n .url(\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\")\n .whitelistDomains(\"storage.googleapis.com\")\n .build());\n\n var myHetznerNodeTemplate = new NodeTemplate(\"myHetznerNodeTemplate\", NodeTemplateArgs.builder()\n .name(\"my-hetzner-node-template\")\n .driverId(hetznerNodeDriver.id())\n .hetznerConfig(NodeTemplateHetznerConfigArgs.builder()\n .apiToken(\"XXXXXXXXXX\")\n .image(\"ubuntu-18.04\")\n .serverLocation(\"nbg1\")\n .serverType(\"cx11\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template using hetzner node_driver\n hetznerNodeDriver:\n type: rancher2:NodeDriver\n name: hetzner_node_driver\n properties:\n active: true\n builtin: false\n name: Hetzner\n uiUrl: https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\n url: https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\n whitelistDomains:\n - storage.googleapis.com\n myHetznerNodeTemplate:\n type: rancher2:NodeTemplate\n name: my_hetzner_node_template\n properties:\n name: my-hetzner-node-template\n driverId: ${hetznerNodeDriver.id}\n hetznerConfig:\n apiToken: XXXXXXXXXX\n image: ubuntu-18.04\n serverLocation: nbg1\n serverType: cx11\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Upgrading to Rancher v2.3.3\n\n**Important** This process could update `rancher2.NodeTemplate` data on tfstate file. Be sure to save a copy of tfstate file before proceed\n\nDue to [this feature](https://github.com/rancher/rancher/pull/23718) included on Rancher v2.3.3, `rancher2.NodeTemplate` are now global scoped objects with RBAC around them, instead of user scoped objects as they were. This means that existing node templates `id` field is changing on upgrade. Provider implements `fixNodeTemplateID()` that will update tfstate with proper id.\n\n## Import\n\nNode Template can be imported using the Rancher Node Template ID\n\n```sh\n$ pulumi import rancher2:index/nodeTemplate:NodeTemplate foo \u0026lt;node_template_id\u0026gt;\n```\n", + "description": "Provides a Rancher v2 Node Template resource. This can be used to create Node Template for Rancher v2 and retrieve their information.\n\namazonec2, azure, digitalocean, harvester, linode, opennebula, openstack, outscale, hetzner and vsphere drivers are supported for node templates.\n\n**Note:** If you are upgrading to Rancher v2.3.3, please take a look to final section\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template up to Rancher 2.1.x\nconst foo = new rancher2.NodeTemplate(\"foo\", {\n name: \"foo\",\n description: \"foo test\",\n amazonec2Config: {\n accessKey: \"AWS_ACCESS_KEY\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template up to Rancher 2.1.x\nfoo = rancher2.NodeTemplate(\"foo\",\n name=\"foo\",\n description=\"foo test\",\n amazonec2_config={\n \"access_key\": \"AWS_ACCESS_KEY\",\n \"secret_key\": \"\u003cAWS_SECRET_KEY\u003e\",\n \"ami\": \"\u003cAMI_ID\u003e\",\n \"region\": \"\u003cREGION\u003e\",\n \"security_groups\": [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n \"subnet_id\": \"\u003cSUBNET_ID\u003e\",\n \"vpc_id\": \"\u003cVPC_ID\u003e\",\n \"zone\": \"\u003cZONE\u003e\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template up to Rancher 2.1.x\n var foo = new Rancher2.NodeTemplate(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"foo test\",\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n AccessKey = \"AWS_ACCESS_KEY\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a new rancher2 Node Template up to Rancher 2.1.x\n\t\t_, err := rancher2.NewNodeTemplate(ctx, \"foo\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"AWS_ACCESS_KEY\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\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.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\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 // Create a new rancher2 Node Template up to Rancher 2.1.x\n var foo = new NodeTemplate(\"foo\", NodeTemplateArgs.builder()\n .name(\"foo\")\n .description(\"foo test\")\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .accessKey(\"AWS_ACCESS_KEY\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template up to Rancher 2.1.x\n foo:\n type: rancher2:NodeTemplate\n properties:\n name: foo\n description: foo test\n amazonec2Config:\n accessKey: AWS_ACCESS_KEY\n secretKey: \u003cAWS_SECRET_KEY\u003e\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template from Rancher 2.2.x\nconst foo = new rancher2.CloudCredential(\"foo\", {\n name: \"foo\",\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooNodeTemplate = new rancher2.NodeTemplate(\"foo\", {\n name: \"foo\",\n description: \"foo test\",\n cloudCredentialId: foo.id,\n amazonec2Config: {\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template from Rancher 2.2.x\nfoo = rancher2.CloudCredential(\"foo\",\n name=\"foo\",\n description=\"foo test\",\n amazonec2_credential_config={\n \"access_key\": \"\u003cAWS_ACCESS_KEY\u003e\",\n \"secret_key\": \"\u003cAWS_SECRET_KEY\u003e\",\n })\nfoo_node_template = rancher2.NodeTemplate(\"foo\",\n name=\"foo\",\n description=\"foo test\",\n cloud_credential_id=foo.id,\n amazonec2_config={\n \"ami\": \"\u003cAMI_ID\u003e\",\n \"region\": \"\u003cREGION\u003e\",\n \"security_groups\": [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n \"subnet_id\": \"\u003cSUBNET_ID\u003e\",\n \"vpc_id\": \"\u003cVPC_ID\u003e\",\n \"zone\": \"\u003cZONE\u003e\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template from Rancher 2.2.x\n var foo = new Rancher2.CloudCredential(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooNodeTemplate = new Rancher2.NodeTemplate(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"foo test\",\n CloudCredentialId = foo.Id,\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a new rancher2 Node Template from Rancher 2.2.x\n\t\tfoo, err := rancher2.NewCloudCredential(ctx, \"foo\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"foo\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tCloudCredentialId: foo.ID(),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\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 // Create a new rancher2 Node Template from Rancher 2.2.x\n var foo = new CloudCredential(\"foo\", CloudCredentialArgs.builder()\n .name(\"foo\")\n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooNodeTemplate = new NodeTemplate(\"fooNodeTemplate\", NodeTemplateArgs.builder()\n .name(\"foo\")\n .description(\"foo test\")\n .cloudCredentialId(foo.id())\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template from Rancher 2.2.x\n foo:\n type: rancher2:CloudCredential\n properties:\n name: foo\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooNodeTemplate:\n type: rancher2:NodeTemplate\n name: foo\n properties:\n name: foo\n description: foo test\n cloudCredentialId: ${foo.id}\n amazonec2Config:\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Using the Harvester Node Driver\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Get imported harvester cluster info\nconst foo-harvester = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvester\", {\n name: \"foo-harvester\",\n harvesterCredentialConfig: {\n clusterId: foo_harvester.then(foo_harvester =\u003e foo_harvester.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvester.then(foo_harvester =\u003e foo_harvester.kubeConfig),\n },\n});\n// Create a new rancher2 Node Template using harvester node_driver\nconst foo_harvesterNodeTemplate = new rancher2.NodeTemplate(\"foo-harvester\", {\n name: \"foo-harvester\",\n cloudCredentialId: foo_harvesterCloudCredential.id,\n engineInstallUrl: \"https://releases.rancher.com/install-docker/20.10.sh\",\n harvesterConfig: {\n vmNamespace: \"default\",\n cpuCount: \"2\",\n memorySize: \"4\",\n diskInfo: ` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n`,\n networkInfo: ` {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n`,\n sshUser: \"ubuntu\",\n userData: ` package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Get imported harvester cluster info\nfoo_harvester = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvester\",\n name=\"foo-harvester\",\n harvester_credential_config={\n \"cluster_id\": foo_harvester.cluster_v1_id,\n \"cluster_type\": \"imported\",\n \"kubeconfig_content\": foo_harvester.kube_config,\n })\n# Create a new rancher2 Node Template using harvester node_driver\nfoo_harvester_node_template = rancher2.NodeTemplate(\"foo-harvester\",\n name=\"foo-harvester\",\n cloud_credential_id=foo_harvester_cloud_credential.id,\n engine_install_url=\"https://releases.rancher.com/install-docker/20.10.sh\",\n harvester_config={\n \"vm_namespace\": \"default\",\n \"cpu_count\": \"2\",\n \"memory_size\": \"4\",\n \"disk_info\": \"\"\" {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n\"\"\",\n \"network_info\": \"\"\" {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n\"\"\",\n \"ssh_user\": \"ubuntu\",\n \"user_data\": \"\"\" package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\"\"\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Get imported harvester cluster info\n var foo_harvester = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvester\", new()\n {\n Name = \"foo-harvester\",\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvester.Apply(foo_harvester =\u003e foo_harvester.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n // Create a new rancher2 Node Template using harvester node_driver\n var foo_harvesterNodeTemplate = new Rancher2.NodeTemplate(\"foo-harvester\", new()\n {\n Name = \"foo-harvester\",\n CloudCredentialId = foo_harvesterCloudCredential.Id,\n EngineInstallUrl = \"https://releases.rancher.com/install-docker/20.10.sh\",\n HarvesterConfig = new Rancher2.Inputs.NodeTemplateHarvesterConfigArgs\n {\n VmNamespace = \"default\",\n CpuCount = \"2\",\n MemorySize = \"4\",\n DiskInfo = @\" {\n \"\"disks\"\": [{\n \"\"imageName\"\": \"\"harvester-public/image-57hzg\"\",\n \"\"size\"\": 40,\n \"\"bootOrder\"\": 1\n }]\n }\n\",\n NetworkInfo = @\" {\n \"\"interfaces\"\": [{\n \"\"networkName\"\": \"\"harvester-public/vlan1\"\"\n }]\n }\n\",\n SshUser = \"ubuntu\",\n UserData = @\" package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Get imported harvester cluster info\n\t\tfoo_harvester, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new Cloud Credential for an imported Harvester cluster\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvester\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tName: pulumi.String(\"foo-harvester\"),\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: pulumi.String(foo_harvester.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: pulumi.String(foo_harvester.KubeConfig),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new rancher2 Node Template using harvester node_driver\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"foo-harvester\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tName: pulumi.String(\"foo-harvester\"),\n\t\t\tCloudCredentialId: foo_harvesterCloudCredential.ID(),\n\t\t\tEngineInstallUrl: pulumi.String(\"https://releases.rancher.com/install-docker/20.10.sh\"),\n\t\t\tHarvesterConfig: \u0026rancher2.NodeTemplateHarvesterConfigArgs{\n\t\t\t\tVmNamespace: pulumi.String(\"default\"),\n\t\t\t\tCpuCount: pulumi.String(\"2\"),\n\t\t\t\tMemorySize: pulumi.String(\"4\"),\n\t\t\t\tDiskInfo: pulumi.String(` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n`),\n\t\t\t\tNetworkInfo: pulumi.String(` {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n`),\n\t\t\t\tSshUser: pulumi.String(\"ubuntu\"),\n\t\t\t\tUserData: pulumi.String(` package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateHarvesterConfigArgs;\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 // Get imported harvester cluster info\n final var foo-harvester = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder()\n .name(\"foo-harvester\")\n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvester.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvester.kubeConfig())\n .build())\n .build());\n\n // Create a new rancher2 Node Template using harvester node_driver\n var foo_harvesterNodeTemplate = new NodeTemplate(\"foo-harvesterNodeTemplate\", NodeTemplateArgs.builder()\n .name(\"foo-harvester\")\n .cloudCredentialId(foo_harvesterCloudCredential.id())\n .engineInstallUrl(\"https://releases.rancher.com/install-docker/20.10.sh\")\n .harvesterConfig(NodeTemplateHarvesterConfigArgs.builder()\n .vmNamespace(\"default\")\n .cpuCount(\"2\")\n .memorySize(\"4\")\n .diskInfo(\"\"\"\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n \"\"\")\n .networkInfo(\"\"\"\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n \"\"\")\n .sshUser(\"ubuntu\")\n .userData(\"\"\"\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n name: foo-harvester\n properties:\n name: foo-harvester\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvester\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvester\"].kubeConfig}\n # Create a new rancher2 Node Template using harvester node_driver\n foo-harvesterNodeTemplate:\n type: rancher2:NodeTemplate\n name: foo-harvester\n properties:\n name: foo-harvester\n cloudCredentialId: ${[\"foo-harvesterCloudCredential\"].id}\n engineInstallUrl: https://releases.rancher.com/install-docker/20.10.sh\n harvesterConfig:\n vmNamespace: default\n cpuCount: '2'\n memorySize: '4'\n diskInfo: |2\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n networkInfo: |2\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n sshUser: ubuntu\n userData: |2\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\nvariables:\n # Get imported harvester cluster info\n foo-harvester:\n fn::invoke:\n function: rancher2:getClusterV2\n arguments:\n name: foo-harvester\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Using the Hetzner Node Driver\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template using hetzner node_driver\nconst hetznerNodeDriver = new rancher2.NodeDriver(\"hetzner_node_driver\", {\n active: true,\n builtin: false,\n name: \"Hetzner\",\n uiUrl: \"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n url: \"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n whitelistDomains: [\"storage.googleapis.com\"],\n});\nconst myHetznerNodeTemplate = new rancher2.NodeTemplate(\"my_hetzner_node_template\", {\n name: \"my-hetzner-node-template\",\n driverId: hetznerNodeDriver.id,\n hetznerConfig: {\n apiToken: \"XXXXXXXXXX\",\n image: \"ubuntu-18.04\",\n serverLocation: \"nbg1\",\n serverType: \"cx11\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template using hetzner node_driver\nhetzner_node_driver = rancher2.NodeDriver(\"hetzner_node_driver\",\n active=True,\n builtin=False,\n name=\"Hetzner\",\n ui_url=\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n url=\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n whitelist_domains=[\"storage.googleapis.com\"])\nmy_hetzner_node_template = rancher2.NodeTemplate(\"my_hetzner_node_template\",\n name=\"my-hetzner-node-template\",\n driver_id=hetzner_node_driver.id,\n hetzner_config={\n \"api_token\": \"XXXXXXXXXX\",\n \"image\": \"ubuntu-18.04\",\n \"server_location\": \"nbg1\",\n \"server_type\": \"cx11\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template using hetzner node_driver\n var hetznerNodeDriver = new Rancher2.NodeDriver(\"hetzner_node_driver\", new()\n {\n Active = true,\n Builtin = false,\n Name = \"Hetzner\",\n UiUrl = \"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n Url = \"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n WhitelistDomains = new[]\n {\n \"storage.googleapis.com\",\n },\n });\n\n var myHetznerNodeTemplate = new Rancher2.NodeTemplate(\"my_hetzner_node_template\", new()\n {\n Name = \"my-hetzner-node-template\",\n DriverId = hetznerNodeDriver.Id,\n HetznerConfig = new Rancher2.Inputs.NodeTemplateHetznerConfigArgs\n {\n ApiToken = \"XXXXXXXXXX\",\n Image = \"ubuntu-18.04\",\n ServerLocation = \"nbg1\",\n ServerType = \"cx11\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Create a new rancher2 Node Template using hetzner node_driver\n\t\thetznerNodeDriver, err := rancher2.NewNodeDriver(ctx, \"hetzner_node_driver\", \u0026rancher2.NodeDriverArgs{\n\t\t\tActive: pulumi.Bool(true),\n\t\t\tBuiltin: pulumi.Bool(false),\n\t\t\tName: pulumi.String(\"Hetzner\"),\n\t\t\tUiUrl: pulumi.String(\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\"),\n\t\t\tUrl: pulumi.String(\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\"),\n\t\t\tWhitelistDomains: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"storage.googleapis.com\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"my_hetzner_node_template\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tName: pulumi.String(\"my-hetzner-node-template\"),\n\t\t\tDriverId: hetznerNodeDriver.ID(),\n\t\t\tHetznerConfig: \u0026rancher2.NodeTemplateHetznerConfigArgs{\n\t\t\t\tApiToken: pulumi.String(\"XXXXXXXXXX\"),\n\t\t\t\tImage: pulumi.String(\"ubuntu-18.04\"),\n\t\t\t\tServerLocation: pulumi.String(\"nbg1\"),\n\t\t\t\tServerType: pulumi.String(\"cx11\"),\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.rancher2.NodeDriver;\nimport com.pulumi.rancher2.NodeDriverArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateHetznerConfigArgs;\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 // Create a new rancher2 Node Template using hetzner node_driver\n var hetznerNodeDriver = new NodeDriver(\"hetznerNodeDriver\", NodeDriverArgs.builder()\n .active(true)\n .builtin(false)\n .name(\"Hetzner\")\n .uiUrl(\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\")\n .url(\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\")\n .whitelistDomains(\"storage.googleapis.com\")\n .build());\n\n var myHetznerNodeTemplate = new NodeTemplate(\"myHetznerNodeTemplate\", NodeTemplateArgs.builder()\n .name(\"my-hetzner-node-template\")\n .driverId(hetznerNodeDriver.id())\n .hetznerConfig(NodeTemplateHetznerConfigArgs.builder()\n .apiToken(\"XXXXXXXXXX\")\n .image(\"ubuntu-18.04\")\n .serverLocation(\"nbg1\")\n .serverType(\"cx11\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template using hetzner node_driver\n hetznerNodeDriver:\n type: rancher2:NodeDriver\n name: hetzner_node_driver\n properties:\n active: true\n builtin: false\n name: Hetzner\n uiUrl: https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\n url: https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\n whitelistDomains:\n - storage.googleapis.com\n myHetznerNodeTemplate:\n type: rancher2:NodeTemplate\n name: my_hetzner_node_template\n properties:\n name: my-hetzner-node-template\n driverId: ${hetznerNodeDriver.id}\n hetznerConfig:\n apiToken: XXXXXXXXXX\n image: ubuntu-18.04\n serverLocation: nbg1\n serverType: cx11\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Upgrading to Rancher v2.3.3\n\n**Important** This process could update `rancher2.NodeTemplate` data on tfstate file. Be sure to save a copy of tfstate file before proceed\n\nDue to [this feature](https://github.com/rancher/rancher/pull/23718) included on Rancher v2.3.3, `rancher2.NodeTemplate` are now global scoped objects with RBAC around them, instead of user scoped objects as they were. This means that existing node templates `id` field is changing on upgrade. Provider implements `fixNodeTemplateID()` that will update tfstate with proper id.\n\n## Import\n\nNode Template can be imported using the Rancher Node Template ID\n\n```sh\n$ pulumi import rancher2:index/nodeTemplate:NodeTemplate foo \u0026lt;node_template_id\u0026gt;\n```\n", "properties": { "amazonec2Config": { "$ref": "#/types/rancher2:index/NodeTemplateAmazonec2Config:NodeTemplateAmazonec2Config", @@ -28822,7 +28822,7 @@ } }, "rancher2:index/secret:Secret": { - "description": "Provides a Rancher v2 Secret resource. This can be used to create secrets for Rancher v2 environments and retrieve their information.\n\nDepending of the availability, there are 2 types of Rancher v2 secrets:\n- Project secret: Available to all namespaces in the `project_id`\n- Namespaced secret: Available to just `namespace_id` in the `project_id`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\nimport * as std from \"@pulumi/std\";\n\n// Create a new rancher2 Project Secret\nconst foo = new rancher2.Secret(\"foo\", {\n name: \"foo\",\n description: \"Terraform secret foo\",\n projectId: \"\u003cproject_id\u003e\",\n data: {\n address: std.base64encode({\n input: \"test.io\",\n }).then(invoke =\u003e invoke.result),\n username: std.base64encode({\n input: \"user2\",\n }).then(invoke =\u003e invoke.result),\n password: std.base64encode({\n input: \"pass\",\n }).then(invoke =\u003e invoke.result),\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\nimport pulumi_std as std\n\n# Create a new rancher2 Project Secret\nfoo = rancher2.Secret(\"foo\",\n name=\"foo\",\n description=\"Terraform secret foo\",\n project_id=\"\u003cproject_id\u003e\",\n data={\n \"address\": std.base64encode(input=\"test.io\").result,\n \"username\": std.base64encode(input=\"user2\").result,\n \"password\": std.base64encode(input=\"pass\").result,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project Secret\n var foo = new Rancher2.Secret(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"Terraform secret foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n Data = \n {\n { \"address\", Std.Base64encode.Invoke(new()\n {\n Input = \"test.io\",\n }).Apply(invoke =\u003e invoke.Result) },\n { \"username\", Std.Base64encode.Invoke(new()\n {\n Input = \"user2\",\n }).Apply(invoke =\u003e invoke.Result) },\n { \"password\", Std.Base64encode.Invoke(new()\n {\n Input = \"pass\",\n }).Apply(invoke =\u003e invoke.Result) },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tinvokeBase64encode, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"test.io\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeBase64encode1, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"user2\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeBase64encode2, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"pass\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new rancher2 Project Secret\n\t\t_, err = rancher2.NewSecret(ctx, \"foo\", \u0026rancher2.SecretArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"Terraform secret foo\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tData: pulumi.StringMap{\n\t\t\t\t\"address\": pulumi.String(invokeBase64encode.Result),\n\t\t\t\t\"username\": pulumi.String(invokeBase64encode1.Result),\n\t\t\t\t\"password\": pulumi.String(invokeBase64encode2.Result),\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.rancher2.Secret;\nimport com.pulumi.rancher2.SecretArgs;\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 // Create a new rancher2 Project Secret\n var foo = new Secret(\"foo\", SecretArgs.builder()\n .name(\"foo\")\n .description(\"Terraform secret foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .data(Map.ofEntries(\n Map.entry(\"address\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"test.io\")\n .build()).result()),\n Map.entry(\"username\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"user2\")\n .build()).result()),\n Map.entry(\"password\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"pass\")\n .build()).result())\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project Secret\n foo:\n type: rancher2:Secret\n properties:\n name: foo\n description: Terraform secret foo\n projectId: \u003cproject_id\u003e\n data:\n address:\n fn::invoke:\n Function: std:base64encode\n Arguments:\n input: test.io\n Return: result\n username:\n fn::invoke:\n Function: std:base64encode\n Arguments:\n input: user2\n Return: result\n password:\n fn::invoke:\n Function: std:base64encode\n Arguments:\n input: pass\n Return: result\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\nimport * as std from \"@pulumi/std\";\n\n// Create a new rancher2 Namespaced Secret\nconst foo = new rancher2.Secret(\"foo\", {\n name: \"foo\",\n description: \"Terraform secret foo\",\n projectId: \"\u003cproject_id\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n data: {\n address: std.base64encode({\n input: \"test.io\",\n }).then(invoke =\u003e invoke.result),\n username: std.base64encode({\n input: \"user2\",\n }).then(invoke =\u003e invoke.result),\n password: std.base64encode({\n input: \"pass\",\n }).then(invoke =\u003e invoke.result),\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\nimport pulumi_std as std\n\n# Create a new rancher2 Namespaced Secret\nfoo = rancher2.Secret(\"foo\",\n name=\"foo\",\n description=\"Terraform secret foo\",\n project_id=\"\u003cproject_id\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n data={\n \"address\": std.base64encode(input=\"test.io\").result,\n \"username\": std.base64encode(input=\"user2\").result,\n \"password\": std.base64encode(input=\"pass\").result,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Namespaced Secret\n var foo = new Rancher2.Secret(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"Terraform secret foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n Data = \n {\n { \"address\", Std.Base64encode.Invoke(new()\n {\n Input = \"test.io\",\n }).Apply(invoke =\u003e invoke.Result) },\n { \"username\", Std.Base64encode.Invoke(new()\n {\n Input = \"user2\",\n }).Apply(invoke =\u003e invoke.Result) },\n { \"password\", Std.Base64encode.Invoke(new()\n {\n Input = \"pass\",\n }).Apply(invoke =\u003e invoke.Result) },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tinvokeBase64encode, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"test.io\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeBase64encode1, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"user2\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeBase64encode2, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"pass\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new rancher2 Namespaced Secret\n\t\t_, err = rancher2.NewSecret(ctx, \"foo\", \u0026rancher2.SecretArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"Terraform secret foo\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tNamespaceId: pulumi.String(\"\u003cnamespace_id\u003e\"),\n\t\t\tData: pulumi.StringMap{\n\t\t\t\t\"address\": pulumi.String(invokeBase64encode.Result),\n\t\t\t\t\"username\": pulumi.String(invokeBase64encode1.Result),\n\t\t\t\t\"password\": pulumi.String(invokeBase64encode2.Result),\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.rancher2.Secret;\nimport com.pulumi.rancher2.SecretArgs;\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 // Create a new rancher2 Namespaced Secret\n var foo = new Secret(\"foo\", SecretArgs.builder()\n .name(\"foo\")\n .description(\"Terraform secret foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .data(Map.ofEntries(\n Map.entry(\"address\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"test.io\")\n .build()).result()),\n Map.entry(\"username\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"user2\")\n .build()).result()),\n Map.entry(\"password\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"pass\")\n .build()).result())\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Namespaced Secret\n foo:\n type: rancher2:Secret\n properties:\n name: foo\n description: Terraform secret foo\n projectId: \u003cproject_id\u003e\n namespaceId: \u003cnamespace_id\u003e\n data:\n address:\n fn::invoke:\n Function: std:base64encode\n Arguments:\n input: test.io\n Return: result\n username:\n fn::invoke:\n Function: std:base64encode\n Arguments:\n input: user2\n Return: result\n password:\n fn::invoke:\n Function: std:base64encode\n Arguments:\n input: pass\n Return: result\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nSecrets can be imported using the secret ID in the format `\u003cnamespace_id\u003e.\u003cproject_id\u003e.\u003csecret_id\u003e`\n\n```sh\n$ pulumi import rancher2:index/secret:Secret foo \u0026lt;namespace_id\u0026gt;.\u0026lt;project_id\u0026gt;.\u0026lt;secret_id\u0026gt;\n```\n`\u003cnamespace_id\u003e` is optional, just needed for namespaced secret.\n\n", + "description": "Provides a Rancher v2 Secret resource. This can be used to create secrets for Rancher v2 environments and retrieve their information.\n\nDepending of the availability, there are 2 types of Rancher v2 secrets:\n- Project secret: Available to all namespaces in the `project_id`\n- Namespaced secret: Available to just `namespace_id` in the `project_id`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\nimport * as std from \"@pulumi/std\";\n\n// Create a new rancher2 Project Secret\nconst foo = new rancher2.Secret(\"foo\", {\n name: \"foo\",\n description: \"Terraform secret foo\",\n projectId: \"\u003cproject_id\u003e\",\n data: {\n address: std.base64encode({\n input: \"test.io\",\n }).then(invoke =\u003e invoke.result),\n username: std.base64encode({\n input: \"user2\",\n }).then(invoke =\u003e invoke.result),\n password: std.base64encode({\n input: \"pass\",\n }).then(invoke =\u003e invoke.result),\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\nimport pulumi_std as std\n\n# Create a new rancher2 Project Secret\nfoo = rancher2.Secret(\"foo\",\n name=\"foo\",\n description=\"Terraform secret foo\",\n project_id=\"\u003cproject_id\u003e\",\n data={\n \"address\": std.base64encode(input=\"test.io\").result,\n \"username\": std.base64encode(input=\"user2\").result,\n \"password\": std.base64encode(input=\"pass\").result,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project Secret\n var foo = new Rancher2.Secret(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"Terraform secret foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n Data = \n {\n { \"address\", Std.Base64encode.Invoke(new()\n {\n Input = \"test.io\",\n }).Apply(invoke =\u003e invoke.Result) },\n { \"username\", Std.Base64encode.Invoke(new()\n {\n Input = \"user2\",\n }).Apply(invoke =\u003e invoke.Result) },\n { \"password\", Std.Base64encode.Invoke(new()\n {\n Input = \"pass\",\n }).Apply(invoke =\u003e invoke.Result) },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tinvokeBase64encode, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"test.io\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeBase64encode1, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"user2\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeBase64encode2, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"pass\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new rancher2 Project Secret\n\t\t_, err = rancher2.NewSecret(ctx, \"foo\", \u0026rancher2.SecretArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"Terraform secret foo\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tData: pulumi.StringMap{\n\t\t\t\t\"address\": pulumi.String(invokeBase64encode.Result),\n\t\t\t\t\"username\": pulumi.String(invokeBase64encode1.Result),\n\t\t\t\t\"password\": pulumi.String(invokeBase64encode2.Result),\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.rancher2.Secret;\nimport com.pulumi.rancher2.SecretArgs;\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 // Create a new rancher2 Project Secret\n var foo = new Secret(\"foo\", SecretArgs.builder()\n .name(\"foo\")\n .description(\"Terraform secret foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .data(Map.ofEntries(\n Map.entry(\"address\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"test.io\")\n .build()).result()),\n Map.entry(\"username\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"user2\")\n .build()).result()),\n Map.entry(\"password\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"pass\")\n .build()).result())\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project Secret\n foo:\n type: rancher2:Secret\n properties:\n name: foo\n description: Terraform secret foo\n projectId: \u003cproject_id\u003e\n data:\n address:\n fn::invoke:\n function: std:base64encode\n arguments:\n input: test.io\n return: result\n username:\n fn::invoke:\n function: std:base64encode\n arguments:\n input: user2\n return: result\n password:\n fn::invoke:\n function: std:base64encode\n arguments:\n input: pass\n return: result\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\nimport * as std from \"@pulumi/std\";\n\n// Create a new rancher2 Namespaced Secret\nconst foo = new rancher2.Secret(\"foo\", {\n name: \"foo\",\n description: \"Terraform secret foo\",\n projectId: \"\u003cproject_id\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n data: {\n address: std.base64encode({\n input: \"test.io\",\n }).then(invoke =\u003e invoke.result),\n username: std.base64encode({\n input: \"user2\",\n }).then(invoke =\u003e invoke.result),\n password: std.base64encode({\n input: \"pass\",\n }).then(invoke =\u003e invoke.result),\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\nimport pulumi_std as std\n\n# Create a new rancher2 Namespaced Secret\nfoo = rancher2.Secret(\"foo\",\n name=\"foo\",\n description=\"Terraform secret foo\",\n project_id=\"\u003cproject_id\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n data={\n \"address\": std.base64encode(input=\"test.io\").result,\n \"username\": std.base64encode(input=\"user2\").result,\n \"password\": std.base64encode(input=\"pass\").result,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Namespaced Secret\n var foo = new Rancher2.Secret(\"foo\", new()\n {\n Name = \"foo\",\n Description = \"Terraform secret foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n Data = \n {\n { \"address\", Std.Base64encode.Invoke(new()\n {\n Input = \"test.io\",\n }).Apply(invoke =\u003e invoke.Result) },\n { \"username\", Std.Base64encode.Invoke(new()\n {\n Input = \"user2\",\n }).Apply(invoke =\u003e invoke.Result) },\n { \"password\", Std.Base64encode.Invoke(new()\n {\n Input = \"pass\",\n }).Apply(invoke =\u003e invoke.Result) },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tinvokeBase64encode, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"test.io\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeBase64encode1, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"user2\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeBase64encode2, err := std.Base64encode(ctx, \u0026std.Base64encodeArgs{\n\t\t\tInput: \"pass\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a new rancher2 Namespaced Secret\n\t\t_, err = rancher2.NewSecret(ctx, \"foo\", \u0026rancher2.SecretArgs{\n\t\t\tName: pulumi.String(\"foo\"),\n\t\t\tDescription: pulumi.String(\"Terraform secret foo\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tNamespaceId: pulumi.String(\"\u003cnamespace_id\u003e\"),\n\t\t\tData: pulumi.StringMap{\n\t\t\t\t\"address\": pulumi.String(invokeBase64encode.Result),\n\t\t\t\t\"username\": pulumi.String(invokeBase64encode1.Result),\n\t\t\t\t\"password\": pulumi.String(invokeBase64encode2.Result),\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.rancher2.Secret;\nimport com.pulumi.rancher2.SecretArgs;\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 // Create a new rancher2 Namespaced Secret\n var foo = new Secret(\"foo\", SecretArgs.builder()\n .name(\"foo\")\n .description(\"Terraform secret foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .data(Map.ofEntries(\n Map.entry(\"address\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"test.io\")\n .build()).result()),\n Map.entry(\"username\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"user2\")\n .build()).result()),\n Map.entry(\"password\", StdFunctions.base64encode(Base64encodeArgs.builder()\n .input(\"pass\")\n .build()).result())\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Namespaced Secret\n foo:\n type: rancher2:Secret\n properties:\n name: foo\n description: Terraform secret foo\n projectId: \u003cproject_id\u003e\n namespaceId: \u003cnamespace_id\u003e\n data:\n address:\n fn::invoke:\n function: std:base64encode\n arguments:\n input: test.io\n return: result\n username:\n fn::invoke:\n function: std:base64encode\n arguments:\n input: user2\n return: result\n password:\n fn::invoke:\n function: std:base64encode\n arguments:\n input: pass\n return: result\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nSecrets can be imported using the secret ID in the format `\u003cnamespace_id\u003e.\u003cproject_id\u003e.\u003csecret_id\u003e`\n\n```sh\n$ pulumi import rancher2:index/secret:Secret foo \u0026lt;namespace_id\u0026gt;.\u0026lt;project_id\u0026gt;.\u0026lt;secret_id\u0026gt;\n```\n`\u003cnamespace_id\u003e` is optional, just needed for namespaced secret.\n\n", "properties": { "annotations": { "type": "object", @@ -29759,7 +29759,7 @@ }, "functions": { "rancher2:index/getApp:getApp": { - "description": "Use this data source to retrieve information about a Rancher v2 app.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst rancher2 = rancher2.getApp({\n name: \"foo\",\n projectId: \"\u003cproject_id\u003e\",\n targetNamespace: \"\u003cnamespace_name\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nrancher2 = rancher2.get_app(name=\"foo\",\n project_id=\"\u003cproject_id\u003e\",\n target_namespace=\"\u003cnamespace_name\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var rancher2 = Rancher2.GetApp.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n TargetNamespace = \"\u003cnamespace_name\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupApp(ctx, \u0026rancher2.LookupAppArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tTargetNamespace: pulumi.StringRef(\"\u003cnamespace_name\u003e\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetAppArgs;\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 rancher2 = Rancher2Functions.getApp(GetAppArgs.builder()\n .name(\"foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .targetNamespace(\"\u003cnamespace_name\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n rancher2:\n fn::invoke:\n Function: rancher2:getApp\n Arguments:\n name: foo\n projectId: \u003cproject_id\u003e\n targetNamespace: \u003cnamespace_name\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 app.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst rancher2 = rancher2.getApp({\n name: \"foo\",\n projectId: \"\u003cproject_id\u003e\",\n targetNamespace: \"\u003cnamespace_name\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nrancher2 = rancher2.get_app(name=\"foo\",\n project_id=\"\u003cproject_id\u003e\",\n target_namespace=\"\u003cnamespace_name\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var rancher2 = Rancher2.GetApp.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n TargetNamespace = \"\u003cnamespace_name\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupApp(ctx, \u0026rancher2.LookupAppArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tTargetNamespace: pulumi.StringRef(\"\u003cnamespace_name\u003e\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetAppArgs;\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 rancher2 = Rancher2Functions.getApp(GetAppArgs.builder()\n .name(\"foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .targetNamespace(\"\u003cnamespace_name\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n rancher2:\n fn::invoke:\n function: rancher2:getApp\n arguments:\n name: foo\n projectId: \u003cproject_id\u003e\n targetNamespace: \u003cnamespace_name\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getApp.\n", "properties": { @@ -29875,7 +29875,7 @@ } }, "rancher2:index/getCatalog:getCatalog": { - "description": "Use this data source to retrieve information about a Rancher v2 catalog.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst library = rancher2.getCatalog({\n name: \"catalog\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nlibrary = rancher2.get_catalog(name=\"catalog\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var library = Rancher2.GetCatalog.Invoke(new()\n {\n Name = \"catalog\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupCatalog(ctx, \u0026rancher2.LookupCatalogArgs{\n\t\t\tName: \"catalog\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCatalogArgs;\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 library = Rancher2Functions.getCatalog(GetCatalogArgs.builder()\n .name(\"catalog\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n library:\n fn::invoke:\n Function: rancher2:getCatalog\n Arguments:\n name: catalog\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 catalog.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst library = rancher2.getCatalog({\n name: \"catalog\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nlibrary = rancher2.get_catalog(name=\"catalog\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var library = Rancher2.GetCatalog.Invoke(new()\n {\n Name = \"catalog\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupCatalog(ctx, \u0026rancher2.LookupCatalogArgs{\n\t\t\tName: \"catalog\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCatalogArgs;\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 library = Rancher2Functions.getCatalog(GetCatalogArgs.builder()\n .name(\"catalog\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n library:\n fn::invoke:\n function: rancher2:getCatalog\n arguments:\n name: catalog\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCatalog.\n", "properties": { @@ -30118,7 +30118,7 @@ } }, "rancher2:index/getCertificate:getCertificate": { - "description": "Use this data source to retrieve information about a Rancher v2 certificate.\n\nDepending of the availability, there are 2 types of Rancher v2 certificates:\n- Project certificate: Available to all namespaces in the `project_id`\n- Namespaced certificate: Available to just `namespace_id` in the `project_id`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Project Certificate\nconst foo = rancher2.getCertificate({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Project Certificate\nfoo = rancher2.get_certificate(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Project Certificate\n var foo = Rancher2.GetCertificate.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Project Certificate\n\t\t_, err := rancher2.LookupCertificate(ctx, \u0026rancher2.LookupCertificateArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCertificateArgs;\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 // Retrieve a rancher2 Project Certificate\n final var foo = Rancher2Functions.getCertificate(GetCertificateArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Project Certificate\n foo:\n fn::invoke:\n Function: rancher2:getCertificate\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Namespaced Certificate\nconst foo = rancher2.getCertificate({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Namespaced Certificate\nfoo = rancher2.get_certificate(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Namespaced Certificate\n var foo = Rancher2.GetCertificate.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Namespaced Certificate\n\t\t_, err := rancher2.LookupCertificate(ctx, \u0026rancher2.LookupCertificateArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCertificateArgs;\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 // Retrieve a rancher2 Namespaced Certificate\n final var foo = Rancher2Functions.getCertificate(GetCertificateArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Namespaced Certificate\n foo:\n fn::invoke:\n Function: rancher2:getCertificate\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n namespaceId: \u003cnamespace_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 certificate.\n\nDepending of the availability, there are 2 types of Rancher v2 certificates:\n- Project certificate: Available to all namespaces in the `project_id`\n- Namespaced certificate: Available to just `namespace_id` in the `project_id`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Project Certificate\nconst foo = rancher2.getCertificate({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Project Certificate\nfoo = rancher2.get_certificate(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Project Certificate\n var foo = Rancher2.GetCertificate.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Project Certificate\n\t\t_, err := rancher2.LookupCertificate(ctx, \u0026rancher2.LookupCertificateArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCertificateArgs;\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 // Retrieve a rancher2 Project Certificate\n final var foo = Rancher2Functions.getCertificate(GetCertificateArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Project Certificate\n foo:\n fn::invoke:\n function: rancher2:getCertificate\n arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Namespaced Certificate\nconst foo = rancher2.getCertificate({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Namespaced Certificate\nfoo = rancher2.get_certificate(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Namespaced Certificate\n var foo = Rancher2.GetCertificate.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Namespaced Certificate\n\t\t_, err := rancher2.LookupCertificate(ctx, \u0026rancher2.LookupCertificateArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCertificateArgs;\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 // Retrieve a rancher2 Namespaced Certificate\n final var foo = Rancher2Functions.getCertificate(GetCertificateArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Namespaced Certificate\n foo:\n fn::invoke:\n function: rancher2:getCertificate\n arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n namespaceId: \u003cnamespace_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCertificate.\n", "properties": { @@ -30193,7 +30193,7 @@ } }, "rancher2:index/getCloudCredential:getCloudCredential": { - "description": "Use this data source to retrieve information about a Rancher v2 Cloud Credential.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst test = rancher2.getCloudCredential({\n name: \"test\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\ntest = rancher2.get_cloud_credential(name=\"test\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Rancher2.GetCloudCredential.Invoke(new()\n {\n Name = \"test\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupCloudCredential(ctx, \u0026rancher2.LookupCloudCredentialArgs{\n\t\t\tName: \"test\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCloudCredentialArgs;\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 test = Rancher2Functions.getCloudCredential(GetCloudCredentialArgs.builder()\n .name(\"test\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n Function: rancher2:getCloudCredential\n Arguments:\n name: test\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 Cloud Credential.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst test = rancher2.getCloudCredential({\n name: \"test\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\ntest = rancher2.get_cloud_credential(name=\"test\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Rancher2.GetCloudCredential.Invoke(new()\n {\n Name = \"test\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupCloudCredential(ctx, \u0026rancher2.LookupCloudCredentialArgs{\n\t\t\tName: \"test\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCloudCredentialArgs;\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 test = Rancher2Functions.getCloudCredential(GetCloudCredentialArgs.builder()\n .name(\"test\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n function: rancher2:getCloudCredential\n arguments:\n name: test\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCloudCredential.\n", "properties": { @@ -30242,7 +30242,7 @@ } }, "rancher2:index/getCluster:getCluster": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-custom = rancher2.getCluster({\n name: \"foo-custom\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_custom = rancher2.get_cluster(name=\"foo-custom\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_custom = Rancher2.GetCluster.Invoke(new()\n {\n Name = \"foo-custom\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupCluster(ctx, \u0026rancher2.LookupClusterArgs{\n\t\t\tName: \"foo-custom\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterArgs;\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 foo-custom = Rancher2Functions.getCluster(GetClusterArgs.builder()\n .name(\"foo-custom\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo-custom:\n fn::invoke:\n Function: rancher2:getCluster\n Arguments:\n name: foo-custom\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 cluster.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-custom = rancher2.getCluster({\n name: \"foo-custom\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_custom = rancher2.get_cluster(name=\"foo-custom\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_custom = Rancher2.GetCluster.Invoke(new()\n {\n Name = \"foo-custom\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupCluster(ctx, \u0026rancher2.LookupClusterArgs{\n\t\t\tName: \"foo-custom\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterArgs;\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 foo-custom = Rancher2Functions.getCluster(GetClusterArgs.builder()\n .name(\"foo-custom\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo-custom:\n fn::invoke:\n function: rancher2:getCluster\n arguments:\n name: foo-custom\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCluster.\n", "properties": { @@ -30430,7 +30430,7 @@ } }, "rancher2:index/getClusterDriver:getClusterDriver": { - "description": "Use this data source to retrieve information about a Rancher v2 Cluster Driver resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterDriver({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_driver(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterDriver.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupClusterDriver(ctx, \u0026rancher2.LookupClusterDriverArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterDriverArgs;\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 foo = Rancher2Functions.getClusterDriver(GetClusterDriverArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterDriver\n Arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 Cluster Driver resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterDriver({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_driver(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterDriver.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupClusterDriver(ctx, \u0026rancher2.LookupClusterDriverArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterDriverArgs;\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 foo = Rancher2Functions.getClusterDriver(GetClusterDriverArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getClusterDriver\n arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getClusterDriver.\n", "properties": { @@ -30520,7 +30520,7 @@ } }, "rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster role template binding.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterRoleTemplateBinding({\n name: \"foo\",\n clusterId: \"foo_id\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_role_template_binding(name=\"foo\",\n cluster_id=\"foo_id\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterRoleTemplateBinding.Invoke(new()\n {\n Name = \"foo\",\n ClusterId = \"foo_id\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupClusterRoleTemplateBinding(ctx, \u0026rancher2.LookupClusterRoleTemplateBindingArgs{\n\t\t\tName: \"foo\",\n\t\t\tClusterId: \"foo_id\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterRoleTemplateBindingArgs;\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 foo = Rancher2Functions.getClusterRoleTemplateBinding(GetClusterRoleTemplateBindingArgs.builder()\n .name(\"foo\")\n .clusterId(\"foo_id\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterRoleTemplateBinding\n Arguments:\n name: foo\n clusterId: foo_id\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 cluster role template binding.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterRoleTemplateBinding({\n name: \"foo\",\n clusterId: \"foo_id\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_role_template_binding(name=\"foo\",\n cluster_id=\"foo_id\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterRoleTemplateBinding.Invoke(new()\n {\n Name = \"foo\",\n ClusterId = \"foo_id\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupClusterRoleTemplateBinding(ctx, \u0026rancher2.LookupClusterRoleTemplateBindingArgs{\n\t\t\tName: \"foo\",\n\t\t\tClusterId: \"foo_id\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterRoleTemplateBindingArgs;\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 foo = Rancher2Functions.getClusterRoleTemplateBinding(GetClusterRoleTemplateBindingArgs.builder()\n .name(\"foo\")\n .clusterId(\"foo_id\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getClusterRoleTemplateBinding\n arguments:\n name: foo\n clusterId: foo_id\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getClusterRoleTemplateBinding.\n", "properties": { @@ -30606,7 +30606,7 @@ } }, "rancher2:index/getClusterTemplate:getClusterTemplate": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster template.\n\nCluster Templates are available from Rancher v2.3.x and above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupClusterTemplate(ctx, \u0026rancher2.LookupClusterTemplateArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterTemplateArgs;\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 foo = Rancher2Functions.getClusterTemplate(GetClusterTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterTemplate\n Arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 cluster template.\n\nCluster Templates are available from Rancher v2.3.x and above.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupClusterTemplate(ctx, \u0026rancher2.LookupClusterTemplateArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterTemplateArgs;\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 foo = Rancher2Functions.getClusterTemplate(GetClusterTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getClusterTemplate\n arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getClusterTemplate.\n", "properties": { @@ -30697,7 +30697,7 @@ } }, "rancher2:index/getClusterV2:getClusterV2": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterV2({\n name: \"foo\",\n fleetNamespace: \"fleet-ns\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_v2(name=\"foo\",\n fleet_namespace=\"fleet-ns\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo\",\n FleetNamespace = \"fleet-ns\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo\",\n\t\t\tFleetNamespace: pulumi.StringRef(\"fleet-ns\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\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 foo = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo\")\n .fleetNamespace(\"fleet-ns\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo\n fleetNamespace: fleet-ns\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 cluster.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterV2({\n name: \"foo\",\n fleetNamespace: \"fleet-ns\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_v2(name=\"foo\",\n fleet_namespace=\"fleet-ns\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo\",\n FleetNamespace = \"fleet-ns\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo\",\n\t\t\tFleetNamespace: pulumi.StringRef(\"fleet-ns\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\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 foo = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo\")\n .fleetNamespace(\"fleet-ns\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getClusterV2\n arguments:\n name: foo\n fleetNamespace: fleet-ns\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getClusterV2.\n", "properties": { @@ -30894,7 +30894,7 @@ } }, "rancher2:index/getEtcdBackup:getEtcdBackup": { - "description": "Use this data source to retrieve information about a Rancher v2 etcd backup.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getEtcdBackup({\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_etcd_backup(cluster_id=\"\u003cCLUSTER_ID\u003e\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetEtcdBackup.Invoke(new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupEtcdBackup(ctx, \u0026rancher2.LookupEtcdBackupArgs{\n\t\t\tClusterId: \"\u003cCLUSTER_ID\u003e\",\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetEtcdBackupArgs;\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 foo = Rancher2Functions.getEtcdBackup(GetEtcdBackupArgs.builder()\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getEtcdBackup\n Arguments:\n clusterId: \u003cCLUSTER_ID\u003e\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 etcd backup.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getEtcdBackup({\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_etcd_backup(cluster_id=\"\u003cCLUSTER_ID\u003e\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetEtcdBackup.Invoke(new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupEtcdBackup(ctx, \u0026rancher2.LookupEtcdBackupArgs{\n\t\t\tClusterId: \"\u003cCLUSTER_ID\u003e\",\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetEtcdBackupArgs;\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 foo = Rancher2Functions.getEtcdBackup(GetEtcdBackupArgs.builder()\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getEtcdBackup\n arguments:\n clusterId: \u003cCLUSTER_ID\u003e\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getEtcdBackup.\n", "properties": { @@ -30972,7 +30972,7 @@ } }, "rancher2:index/getGlobalRole:getGlobalRole": { - "description": "Use this data source to retrieve information about a Rancher v2 global role resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalRole({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_role(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalRole.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupGlobalRole(ctx, \u0026rancher2.LookupGlobalRoleArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalRoleArgs;\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 foo = Rancher2Functions.getGlobalRole(GetGlobalRoleArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getGlobalRole\n Arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 global role resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalRole({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_role(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalRole.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupGlobalRole(ctx, \u0026rancher2.LookupGlobalRoleArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalRoleArgs;\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 foo = Rancher2Functions.getGlobalRole(GetGlobalRoleArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getGlobalRole\n arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getGlobalRole.\n", "properties": { @@ -31058,7 +31058,7 @@ } }, "rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding": { - "description": "Use this data source to retrieve information about a Rancher v2 global role binding.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalRoleBinding({\n name: \"foo\",\n globalRoleId: \"foo_id\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_role_binding(name=\"foo\",\n global_role_id=\"foo_id\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalRoleBinding.Invoke(new()\n {\n Name = \"foo\",\n GlobalRoleId = \"foo_id\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupGlobalRoleBinding(ctx, \u0026rancher2.LookupGlobalRoleBindingArgs{\n\t\t\tName: \"foo\",\n\t\t\tGlobalRoleId: pulumi.StringRef(\"foo_id\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalRoleBindingArgs;\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 foo = Rancher2Functions.getGlobalRoleBinding(GetGlobalRoleBindingArgs.builder()\n .name(\"foo\")\n .globalRoleId(\"foo_id\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getGlobalRoleBinding\n Arguments:\n name: foo\n globalRoleId: foo_id\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 global role binding.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalRoleBinding({\n name: \"foo\",\n globalRoleId: \"foo_id\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_role_binding(name=\"foo\",\n global_role_id=\"foo_id\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalRoleBinding.Invoke(new()\n {\n Name = \"foo\",\n GlobalRoleId = \"foo_id\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupGlobalRoleBinding(ctx, \u0026rancher2.LookupGlobalRoleBindingArgs{\n\t\t\tName: \"foo\",\n\t\t\tGlobalRoleId: pulumi.StringRef(\"foo_id\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalRoleBindingArgs;\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 foo = Rancher2Functions.getGlobalRoleBinding(GetGlobalRoleBindingArgs.builder()\n .name(\"foo\")\n .globalRoleId(\"foo_id\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getGlobalRoleBinding\n arguments:\n name: foo\n globalRoleId: foo_id\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getGlobalRoleBinding.\n", "properties": { @@ -31125,7 +31125,7 @@ } }, "rancher2:index/getMultiClusterApp:getMultiClusterApp": { - "description": "Use this data source to retrieve information about a Rancher v2 multi cluster app.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getMultiClusterApp({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_multi_cluster_app(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetMultiClusterApp.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupMultiClusterApp(ctx, \u0026rancher2.LookupMultiClusterAppArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetMultiClusterAppArgs;\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 foo = Rancher2Functions.getMultiClusterApp(GetMultiClusterAppArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getMultiClusterApp\n Arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 multi cluster app.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getMultiClusterApp({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_multi_cluster_app(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetMultiClusterApp.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupMultiClusterApp(ctx, \u0026rancher2.LookupMultiClusterAppArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetMultiClusterAppArgs;\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 foo = Rancher2Functions.getMultiClusterApp(GetMultiClusterAppArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getMultiClusterApp\n arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getMultiClusterApp.\n", "properties": { @@ -31244,7 +31244,7 @@ } }, "rancher2:index/getNamespace:getNamespace": { - "description": "Use this data source to retrieve information about a Rancher v2 namespace.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNamespace({\n name: \"foo\",\n projectId: foo_custom.defaultProjectId,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_namespace(name=\"foo\",\n project_id=foo_custom[\"defaultProjectId\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNamespace.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = foo_custom.DefaultProjectId,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupNamespace(ctx, \u0026rancher2.LookupNamespaceArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: foo_custom.DefaultProjectId,\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNamespaceArgs;\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 foo = Rancher2Functions.getNamespace(GetNamespaceArgs.builder()\n .name(\"foo\")\n .projectId(foo_custom.defaultProjectId())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNamespace\n Arguments:\n name: foo\n projectId: ${[\"foo-custom\"].defaultProjectId}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 namespace.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNamespace({\n name: \"foo\",\n projectId: foo_custom.defaultProjectId,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_namespace(name=\"foo\",\n project_id=foo_custom[\"defaultProjectId\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNamespace.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = foo_custom.DefaultProjectId,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupNamespace(ctx, \u0026rancher2.LookupNamespaceArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: foo_custom.DefaultProjectId,\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNamespaceArgs;\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 foo = Rancher2Functions.getNamespace(GetNamespaceArgs.builder()\n .name(\"foo\")\n .projectId(foo_custom.defaultProjectId())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getNamespace\n arguments:\n name: foo\n projectId: ${[\"foo-custom\"].defaultProjectId}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getNamespace.\n", "properties": { @@ -31317,7 +31317,7 @@ } }, "rancher2:index/getNodeDriver:getNodeDriver": { - "description": "Use this data source to retrieve information about a Rancher v2 Node Driver resource. \n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodeDriver({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_driver(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodeDriver.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupNodeDriver(ctx, \u0026rancher2.LookupNodeDriverArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodeDriverArgs;\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 foo = Rancher2Functions.getNodeDriver(GetNodeDriverArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodeDriver\n Arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 Node Driver resource. \n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodeDriver({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_driver(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodeDriver.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupNodeDriver(ctx, \u0026rancher2.LookupNodeDriverArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodeDriverArgs;\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 foo = Rancher2Functions.getNodeDriver(GetNodeDriverArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getNodeDriver\n arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getNodeDriver.\n", "properties": { @@ -31412,7 +31412,7 @@ } }, "rancher2:index/getNodePool:getNodePool": { - "description": "Use this data source to retrieve information about a Rancher v2 Node Pool resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodePool({\n clusterId: foo_custom.id,\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_pool(cluster_id=foo_custom[\"id\"],\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodePool.Invoke(new()\n {\n ClusterId = foo_custom.Id,\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupNodePool(ctx, \u0026rancher2.LookupNodePoolArgs{\n\t\t\tClusterId: foo_custom.Id,\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodePoolArgs;\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 foo = Rancher2Functions.getNodePool(GetNodePoolArgs.builder()\n .clusterId(foo_custom.id())\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodePool\n Arguments:\n clusterId: ${[\"foo-custom\"].id}\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 Node Pool resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodePool({\n clusterId: foo_custom.id,\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_pool(cluster_id=foo_custom[\"id\"],\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodePool.Invoke(new()\n {\n ClusterId = foo_custom.Id,\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupNodePool(ctx, \u0026rancher2.LookupNodePoolArgs{\n\t\t\tClusterId: foo_custom.Id,\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodePoolArgs;\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 foo = Rancher2Functions.getNodePool(GetNodePoolArgs.builder()\n .clusterId(foo_custom.id())\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getNodePool\n arguments:\n clusterId: ${[\"foo-custom\"].id}\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getNodePool.\n", "properties": { @@ -31516,7 +31516,7 @@ } }, "rancher2:index/getNodeTemplate:getNodeTemplate": { - "description": "Use this data source to retrieve information about a Rancher v2 Node Template resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodeTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodeTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupNodeTemplate(ctx, \u0026rancher2.LookupNodeTemplateArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodeTemplateArgs;\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 foo = Rancher2Functions.getNodeTemplate(GetNodeTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodeTemplate\n Arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 Node Template resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodeTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodeTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupNodeTemplate(ctx, \u0026rancher2.LookupNodeTemplateArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodeTemplateArgs;\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 foo = Rancher2Functions.getNodeTemplate(GetNodeTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getNodeTemplate\n arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getNodeTemplate.\n", "properties": { @@ -31715,7 +31715,7 @@ } }, "rancher2:index/getPrincipal:getPrincipal": { - "description": "Use this data source to retrieve information about a Rancher v2 Principal resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getPrincipal({\n name: \"user@example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_principal(name=\"user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetPrincipal.Invoke(new()\n {\n Name = \"user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.GetPrincipal(ctx, \u0026rancher2.GetPrincipalArgs{\n\t\t\tName: \"user@example.com\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetPrincipalArgs;\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 foo = Rancher2Functions.getPrincipal(GetPrincipalArgs.builder()\n .name(\"user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getPrincipal\n Arguments:\n name: user@example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 Principal resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getPrincipal({\n name: \"user@example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_principal(name=\"user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetPrincipal.Invoke(new()\n {\n Name = \"user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.GetPrincipal(ctx, \u0026rancher2.GetPrincipalArgs{\n\t\t\tName: \"user@example.com\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetPrincipalArgs;\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 foo = Rancher2Functions.getPrincipal(GetPrincipalArgs.builder()\n .name(\"user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getPrincipal\n arguments:\n name: user@example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPrincipal.\n", "properties": { @@ -31833,7 +31833,7 @@ } }, "rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding": { - "description": "Use this data source to retrieve information about a Rancher v2 project role template binding.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getProjectRoleTemplateBinding({\n name: \"foo\",\n projectId: \"foo_id\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_project_role_template_binding(name=\"foo\",\n project_id=\"foo_id\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetProjectRoleTemplateBinding.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = \"foo_id\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupProjectRoleTemplateBinding(ctx, \u0026rancher2.LookupProjectRoleTemplateBindingArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: \"foo_id\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetProjectRoleTemplateBindingArgs;\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 foo = Rancher2Functions.getProjectRoleTemplateBinding(GetProjectRoleTemplateBindingArgs.builder()\n .name(\"foo\")\n .projectId(\"foo_id\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getProjectRoleTemplateBinding\n Arguments:\n name: foo\n projectId: foo_id\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 project role template binding.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getProjectRoleTemplateBinding({\n name: \"foo\",\n projectId: \"foo_id\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_project_role_template_binding(name=\"foo\",\n project_id=\"foo_id\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetProjectRoleTemplateBinding.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = \"foo_id\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupProjectRoleTemplateBinding(ctx, \u0026rancher2.LookupProjectRoleTemplateBindingArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: \"foo_id\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetProjectRoleTemplateBindingArgs;\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 foo = Rancher2Functions.getProjectRoleTemplateBinding(GetProjectRoleTemplateBindingArgs.builder()\n .name(\"foo\")\n .projectId(\"foo_id\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getProjectRoleTemplateBinding\n arguments:\n name: foo\n projectId: foo_id\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getProjectRoleTemplateBinding.\n", "properties": { @@ -31919,7 +31919,7 @@ } }, "rancher2:index/getRegistry:getRegistry": { - "description": "Use this data source to retrieve information about a Rancher v2 docker registry.\n\nDepending of the availability, there are 2 types of Rancher v2 docker registries:\n- Project registry: Available to all namespaces in the `project_id`\n- Namespaced registry: Available to just `namespace_id` in the `project_id`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Project Registry\nconst foo = rancher2.getRegistry({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Project Registry\nfoo = rancher2.get_registry(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Project Registry\n var foo = Rancher2.GetRegistry.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Project Registry\n\t\t_, err := rancher2.LookupRegistry(ctx, \u0026rancher2.LookupRegistryArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRegistryArgs;\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 // Retrieve a rancher2 Project Registry\n final var foo = Rancher2Functions.getRegistry(GetRegistryArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Project Registry\n foo:\n fn::invoke:\n Function: rancher2:getRegistry\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Namespaced Registry\nconst foo = rancher2.getRegistry({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Namespaced Registry\nfoo = rancher2.get_registry(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Namespaced Registry\n var foo = Rancher2.GetRegistry.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Namespaced Registry\n\t\t_, err := rancher2.LookupRegistry(ctx, \u0026rancher2.LookupRegistryArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRegistryArgs;\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 // Retrieve a rancher2 Namespaced Registry\n final var foo = Rancher2Functions.getRegistry(GetRegistryArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Namespaced Registry\n foo:\n fn::invoke:\n Function: rancher2:getRegistry\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n namespaceId: \u003cnamespace_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 docker registry.\n\nDepending of the availability, there are 2 types of Rancher v2 docker registries:\n- Project registry: Available to all namespaces in the `project_id`\n- Namespaced registry: Available to just `namespace_id` in the `project_id`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Project Registry\nconst foo = rancher2.getRegistry({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Project Registry\nfoo = rancher2.get_registry(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Project Registry\n var foo = Rancher2.GetRegistry.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Project Registry\n\t\t_, err := rancher2.LookupRegistry(ctx, \u0026rancher2.LookupRegistryArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRegistryArgs;\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 // Retrieve a rancher2 Project Registry\n final var foo = Rancher2Functions.getRegistry(GetRegistryArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Project Registry\n foo:\n fn::invoke:\n function: rancher2:getRegistry\n arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Namespaced Registry\nconst foo = rancher2.getRegistry({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Namespaced Registry\nfoo = rancher2.get_registry(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Namespaced Registry\n var foo = Rancher2.GetRegistry.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Namespaced Registry\n\t\t_, err := rancher2.LookupRegistry(ctx, \u0026rancher2.LookupRegistryArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRegistryArgs;\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 // Retrieve a rancher2 Namespaced Registry\n final var foo = Rancher2Functions.getRegistry(GetRegistryArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Namespaced Registry\n foo:\n fn::invoke:\n function: rancher2:getRegistry\n arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n namespaceId: \u003cnamespace_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getRegistry.\n", "properties": { @@ -31997,7 +31997,7 @@ } }, "rancher2:index/getRoleTemplate:getRoleTemplate": { - "description": "Use this data source to retrieve information about a Rancher v2 role template resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRoleTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_role_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRoleTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupRoleTemplate(ctx, \u0026rancher2.LookupRoleTemplateArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRoleTemplateArgs;\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 foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getRoleTemplate\n Arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 role template resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRoleTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_role_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRoleTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupRoleTemplate(ctx, \u0026rancher2.LookupRoleTemplateArgs{\n\t\t\tName: \"foo\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRoleTemplateArgs;\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 foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getRoleTemplate\n arguments:\n name: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getRoleTemplate.\n", "properties": { @@ -32120,7 +32120,7 @@ } }, "rancher2:index/getSecret:getSecret": { - "description": "Use this data source to retrieve information about a Rancher v2 secret.\n\nDepending of the availability, there are 2 types of Rancher v2 secrets:\n- Project secret: Available to all namespaces in the `project_id`\n- Namespaced secret: Available to just `namespace_id` in the `project_id`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Project Secret\nconst foo = rancher2.getSecret({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Project Secret\nfoo = rancher2.get_secret(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Project Secret\n var foo = Rancher2.GetSecret.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Project Secret\n\t\t_, err := rancher2.LookupSecret(ctx, \u0026rancher2.LookupSecretArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSecretArgs;\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 // Retrieve a rancher2 Project Secret\n final var foo = Rancher2Functions.getSecret(GetSecretArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Project Secret\n foo:\n fn::invoke:\n Function: rancher2:getSecret\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Namespaced Secret\nconst foo = rancher2.getSecret({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Namespaced Secret\nfoo = rancher2.get_secret(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Namespaced Secret\n var foo = Rancher2.GetSecret.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Namespaced Secret\n\t\t_, err := rancher2.LookupSecret(ctx, \u0026rancher2.LookupSecretArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSecretArgs;\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 // Retrieve a rancher2 Namespaced Secret\n final var foo = Rancher2Functions.getSecret(GetSecretArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Namespaced Secret\n foo:\n fn::invoke:\n Function: rancher2:getSecret\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n namespaceId: \u003cnamespace_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 secret.\n\nDepending of the availability, there are 2 types of Rancher v2 secrets:\n- Project secret: Available to all namespaces in the `project_id`\n- Namespaced secret: Available to just `namespace_id` in the `project_id`\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Project Secret\nconst foo = rancher2.getSecret({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Project Secret\nfoo = rancher2.get_secret(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Project Secret\n var foo = Rancher2.GetSecret.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Project Secret\n\t\t_, err := rancher2.LookupSecret(ctx, \u0026rancher2.LookupSecretArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSecretArgs;\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 // Retrieve a rancher2 Project Secret\n final var foo = Rancher2Functions.getSecret(GetSecretArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Project Secret\n foo:\n fn::invoke:\n function: rancher2:getSecret\n arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Retrieve a rancher2 Namespaced Secret\nconst foo = rancher2.getSecret({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Retrieve a rancher2 Namespaced Secret\nfoo = rancher2.get_secret(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Retrieve a rancher2 Namespaced Secret\n var foo = Rancher2.GetSecret.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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// Retrieve a rancher2 Namespaced Secret\n\t\t_, err := rancher2.LookupSecret(ctx, \u0026rancher2.LookupSecretArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSecretArgs;\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 // Retrieve a rancher2 Namespaced Secret\n final var foo = Rancher2Functions.getSecret(GetSecretArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n # Retrieve a rancher2 Namespaced Secret\n foo:\n fn::invoke:\n function: rancher2:getSecret\n arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n namespaceId: \u003cnamespace_id\u003e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSecret.\n", "properties": { @@ -32286,7 +32286,7 @@ } }, "rancher2:index/getSetting:getSetting": { - "description": "Use this data source to retrieve information about a Rancher v2 setting.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst server-image = rancher2.getSetting({\n name: \"server-image\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nserver_image = rancher2.get_setting(name=\"server-image\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var server_image = Rancher2.GetSetting.Invoke(new()\n {\n Name = \"server-image\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupSetting(ctx, \u0026rancher2.LookupSettingArgs{\n\t\t\tName: \"server-image\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSettingArgs;\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 server-image = Rancher2Functions.getSetting(GetSettingArgs.builder()\n .name(\"server-image\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n server-image:\n fn::invoke:\n Function: rancher2:getSetting\n Arguments:\n name: server-image\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 setting.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst server-image = rancher2.getSetting({\n name: \"server-image\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nserver_image = rancher2.get_setting(name=\"server-image\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var server_image = Rancher2.GetSetting.Invoke(new()\n {\n Name = \"server-image\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupSetting(ctx, \u0026rancher2.LookupSettingArgs{\n\t\t\tName: \"server-image\",\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSettingArgs;\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 server-image = Rancher2Functions.getSetting(GetSettingArgs.builder()\n .name(\"server-image\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n server-image:\n fn::invoke:\n function: rancher2:getSetting\n arguments:\n name: server-image\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSetting.\n", "properties": { @@ -32423,7 +32423,7 @@ } }, "rancher2:index/getUser:getUser": { - "description": "Use this data source to retrieve information about a Rancher v2 user\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getUser({\n username: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_user(username=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetUser.Invoke(new()\n {\n Username = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupUser(ctx, \u0026rancher2.LookupUserArgs{\n\t\t\tUsername: pulumi.StringRef(\"foo\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetUserArgs;\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 foo = Rancher2Functions.getUser(GetUserArgs.builder()\n .username(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getUser\n Arguments:\n username: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about a Rancher v2 user\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getUser({\n username: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_user(username=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetUser.Invoke(new()\n {\n Username = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v8/go/rancher2\"\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 := rancher2.LookupUser(ctx, \u0026rancher2.LookupUserArgs{\n\t\t\tUsername: pulumi.StringRef(\"foo\"),\n\t\t}, nil)\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetUserArgs;\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 foo = Rancher2Functions.getUser(GetUserArgs.builder()\n .username(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n function: rancher2:getUser\n arguments:\n username: foo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getUser.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 24ab0ee7..47bb667a 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -66,8 +66,8 @@ replace ( require ( github.com/hashicorp/terraform-plugin-sdk v1.17.2 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 - github.com/pulumi/pulumi/sdk/v3 v3.140.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.0 + github.com/pulumi/pulumi/sdk/v3 v3.142.0 github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20241125192454-e9c7b7043209 ) @@ -220,9 +220,9 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.17.0 // indirect - github.com/pulumi/pulumi-yaml v1.11.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.140.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.18.0 // indirect + github.com/pulumi/pulumi-yaml v1.12.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.142.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rancher/aks-operator v1.9.0-rc.9 // indirect diff --git a/provider/go.sum b/provider/go.sum index f779242e..fed420ec 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1985,16 +1985,16 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg= github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.17.0 h1:KmaVLrVmlkzShOfaJNJDlckorbFm8dM/C7L4hj6LX8U= -github.com/pulumi/pulumi-java/pkg v0.17.0/go.mod h1:ji4U4H7t81X4aaE88D9+z5CmKH/QoLwQi9N1iGl+2KQ= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 h1:uJB3tM1j+9SKeXLCAx3DBVHsYk4ddXNrVoiqpgXal2Q= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0/go.mod h1:WnOTAfdtm5+kW3rIU0rLhxFSEHtJIMf19FdOU6NFXG0= -github.com/pulumi/pulumi-yaml v1.11.2 h1:MU7TTNbruGCSgNHhaBygjIbLWm3WSbd1q98GpMIgQzE= -github.com/pulumi/pulumi-yaml v1.11.2/go.mod h1:RdXRBupRGGAD1kbYNG1V1h6pyFnXisvQsl0AANvVjGI= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi-java/pkg v0.18.0 h1:3PApc5YegH69n6oubB63mqI97pF+oQywWr7ii4082Mw= +github.com/pulumi/pulumi-java/pkg v0.18.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.0 h1:/Y/9hffZp2CFUfInVbv/9rWnZETiiOgKju1Ua512Ke8= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.0/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= +github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index 1f9d3338..82501b4d 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.140.0 + github.com/pulumi/pulumi/sdk/v3 v3.142.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 22da94d1..16a7bbf5 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/nodejs/getApp.ts b/sdk/nodejs/getApp.ts index 29d9cda8..7210eb16 100644 --- a/sdk/nodejs/getApp.ts +++ b/sdk/nodejs/getApp.ts @@ -120,7 +120,7 @@ export interface GetAppResult { * }); * ``` */ -export function getAppOutput(args: GetAppOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getAppOutput(args: GetAppOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getApp:getApp", { "annotations": args.annotations, diff --git a/sdk/nodejs/getCatalog.ts b/sdk/nodejs/getCatalog.ts index fd9da459..e8ec94d5 100644 --- a/sdk/nodejs/getCatalog.ts +++ b/sdk/nodejs/getCatalog.ts @@ -109,7 +109,7 @@ export interface GetCatalogResult { * }); * ``` */ -export function getCatalogOutput(args: GetCatalogOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getCatalogOutput(args: GetCatalogOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getCatalog:getCatalog", { "name": args.name, diff --git a/sdk/nodejs/getCatalogV2.ts b/sdk/nodejs/getCatalogV2.ts index 8f8b7371..43509d77 100644 --- a/sdk/nodejs/getCatalogV2.ts +++ b/sdk/nodejs/getCatalogV2.ts @@ -107,7 +107,7 @@ export interface GetCatalogV2Result { /** * Use this data source to retrieve information about a Rancher2 catalog v2. Catalog v2 resource is available at Rancher v2.5.x and above. */ -export function getCatalogV2Output(args: GetCatalogV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getCatalogV2Output(args: GetCatalogV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getCatalogV2:getCatalogV2", { "clusterId": args.clusterId, diff --git a/sdk/nodejs/getCertificate.ts b/sdk/nodejs/getCertificate.ts index 70ad9e39..3174c5c7 100644 --- a/sdk/nodejs/getCertificate.ts +++ b/sdk/nodejs/getCertificate.ts @@ -123,7 +123,7 @@ export interface GetCertificateResult { * }); * ``` */ -export function getCertificateOutput(args: GetCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getCertificateOutput(args: GetCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getCertificate:getCertificate", { "name": args.name, diff --git a/sdk/nodejs/getCloudCredential.ts b/sdk/nodejs/getCloudCredential.ts index 9bbb22a3..1c729916 100644 --- a/sdk/nodejs/getCloudCredential.ts +++ b/sdk/nodejs/getCloudCredential.ts @@ -67,7 +67,7 @@ export interface GetCloudCredentialResult { * }); * ``` */ -export function getCloudCredentialOutput(args: GetCloudCredentialOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getCloudCredentialOutput(args: GetCloudCredentialOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getCloudCredential:getCloudCredential", { "name": args.name, diff --git a/sdk/nodejs/getCluster.ts b/sdk/nodejs/getCluster.ts index 24cf92f2..4c18ae3d 100644 --- a/sdk/nodejs/getCluster.ts +++ b/sdk/nodejs/getCluster.ts @@ -172,7 +172,7 @@ export interface GetClusterResult { * }); * ``` */ -export function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getCluster:getCluster", { "defaultPodSecurityAdmissionConfigurationTemplateName": args.defaultPodSecurityAdmissionConfigurationTemplateName, diff --git a/sdk/nodejs/getClusterDriver.ts b/sdk/nodejs/getClusterDriver.ts index 6d7194d3..04ee7c7c 100644 --- a/sdk/nodejs/getClusterDriver.ts +++ b/sdk/nodejs/getClusterDriver.ts @@ -97,7 +97,7 @@ export interface GetClusterDriverResult { * }); * ``` */ -export function getClusterDriverOutput(args: GetClusterDriverOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getClusterDriverOutput(args: GetClusterDriverOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getClusterDriver:getClusterDriver", { "name": args.name, diff --git a/sdk/nodejs/getClusterRoleTemplateBinding.ts b/sdk/nodejs/getClusterRoleTemplateBinding.ts index 207d765e..d83971d9 100644 --- a/sdk/nodejs/getClusterRoleTemplateBinding.ts +++ b/sdk/nodejs/getClusterRoleTemplateBinding.ts @@ -97,7 +97,7 @@ export interface GetClusterRoleTemplateBindingResult { * }); * ``` */ -export function getClusterRoleTemplateBindingOutput(args: GetClusterRoleTemplateBindingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getClusterRoleTemplateBindingOutput(args: GetClusterRoleTemplateBindingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding", { "clusterId": args.clusterId, diff --git a/sdk/nodejs/getClusterTemplate.ts b/sdk/nodejs/getClusterTemplate.ts index 726d26ba..7a784c96 100644 --- a/sdk/nodejs/getClusterTemplate.ts +++ b/sdk/nodejs/getClusterTemplate.ts @@ -98,7 +98,7 @@ export interface GetClusterTemplateResult { * }); * ``` */ -export function getClusterTemplateOutput(args: GetClusterTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getClusterTemplateOutput(args: GetClusterTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getClusterTemplate:getClusterTemplate", { "annotations": args.annotations, diff --git a/sdk/nodejs/getClusterV2.ts b/sdk/nodejs/getClusterV2.ts index 4d7b474c..2cd2e61e 100644 --- a/sdk/nodejs/getClusterV2.ts +++ b/sdk/nodejs/getClusterV2.ts @@ -115,7 +115,7 @@ export interface GetClusterV2Result { * }); * ``` */ -export function getClusterV2Output(args: GetClusterV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getClusterV2Output(args: GetClusterV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getClusterV2:getClusterV2", { "fleetNamespace": args.fleetNamespace, diff --git a/sdk/nodejs/getConfigMapV2.ts b/sdk/nodejs/getConfigMapV2.ts index 58011fd8..a4dd3967 100644 --- a/sdk/nodejs/getConfigMapV2.ts +++ b/sdk/nodejs/getConfigMapV2.ts @@ -69,7 +69,7 @@ export interface GetConfigMapV2Result { /** * Use this data source to retrieve information about a Rancher2 configMap v2. ConfigMap v2 resource is available at Rancher v2.5.x and above. */ -export function getConfigMapV2Output(args: GetConfigMapV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getConfigMapV2Output(args: GetConfigMapV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getConfigMapV2:getConfigMapV2", { "clusterId": args.clusterId, diff --git a/sdk/nodejs/getEtcdBackup.ts b/sdk/nodejs/getEtcdBackup.ts index 5a37f044..25d393d1 100644 --- a/sdk/nodejs/getEtcdBackup.ts +++ b/sdk/nodejs/getEtcdBackup.ts @@ -93,7 +93,7 @@ export interface GetEtcdBackupResult { * }); * ``` */ -export function getEtcdBackupOutput(args: GetEtcdBackupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getEtcdBackupOutput(args: GetEtcdBackupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getEtcdBackup:getEtcdBackup", { "clusterId": args.clusterId, diff --git a/sdk/nodejs/getGlobalRole.ts b/sdk/nodejs/getGlobalRole.ts index 529d1a19..7e581e42 100644 --- a/sdk/nodejs/getGlobalRole.ts +++ b/sdk/nodejs/getGlobalRole.ts @@ -94,7 +94,7 @@ export interface GetGlobalRoleResult { * }); * ``` */ -export function getGlobalRoleOutput(args: GetGlobalRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getGlobalRoleOutput(args: GetGlobalRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getGlobalRole:getGlobalRole", { "inheritedClusterRoles": args.inheritedClusterRoles, diff --git a/sdk/nodejs/getGlobalRoleBinding.ts b/sdk/nodejs/getGlobalRoleBinding.ts index c4ed8b33..62995f11 100644 --- a/sdk/nodejs/getGlobalRoleBinding.ts +++ b/sdk/nodejs/getGlobalRoleBinding.ts @@ -83,7 +83,7 @@ export interface GetGlobalRoleBindingResult { * }); * ``` */ -export function getGlobalRoleBindingOutput(args: GetGlobalRoleBindingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getGlobalRoleBindingOutput(args: GetGlobalRoleBindingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding", { "globalRoleId": args.globalRoleId, diff --git a/sdk/nodejs/getMultiClusterApp.ts b/sdk/nodejs/getMultiClusterApp.ts index 58b045b1..38cfc0ac 100644 --- a/sdk/nodejs/getMultiClusterApp.ts +++ b/sdk/nodejs/getMultiClusterApp.ts @@ -113,7 +113,7 @@ export interface GetMultiClusterAppResult { * }); * ``` */ -export function getMultiClusterAppOutput(args: GetMultiClusterAppOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getMultiClusterAppOutput(args: GetMultiClusterAppOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getMultiClusterApp:getMultiClusterApp", { "name": args.name, diff --git a/sdk/nodejs/getNamespace.ts b/sdk/nodejs/getNamespace.ts index c1e96953..2a52fbe6 100644 --- a/sdk/nodejs/getNamespace.ts +++ b/sdk/nodejs/getNamespace.ts @@ -89,7 +89,7 @@ export interface GetNamespaceResult { * }); * ``` */ -export function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getNamespace:getNamespace", { "name": args.name, diff --git a/sdk/nodejs/getNodeDriver.ts b/sdk/nodejs/getNodeDriver.ts index 6c086278..d9915862 100644 --- a/sdk/nodejs/getNodeDriver.ts +++ b/sdk/nodejs/getNodeDriver.ts @@ -101,7 +101,7 @@ export interface GetNodeDriverResult { * }); * ``` */ -export function getNodeDriverOutput(args: GetNodeDriverOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getNodeDriverOutput(args: GetNodeDriverOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getNodeDriver:getNodeDriver", { "name": args.name, diff --git a/sdk/nodejs/getNodePool.ts b/sdk/nodejs/getNodePool.ts index 606e07b0..5362b555 100644 --- a/sdk/nodejs/getNodePool.ts +++ b/sdk/nodejs/getNodePool.ts @@ -111,7 +111,7 @@ export interface GetNodePoolResult { * }); * ``` */ -export function getNodePoolOutput(args: GetNodePoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getNodePoolOutput(args: GetNodePoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getNodePool:getNodePool", { "clusterId": args.clusterId, diff --git a/sdk/nodejs/getNodeTemplate.ts b/sdk/nodejs/getNodeTemplate.ts index fb492f2c..e7ca231b 100644 --- a/sdk/nodejs/getNodeTemplate.ts +++ b/sdk/nodejs/getNodeTemplate.ts @@ -122,7 +122,7 @@ export interface GetNodeTemplateResult { * }); * ``` */ -export function getNodeTemplateOutput(args: GetNodeTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getNodeTemplateOutput(args: GetNodeTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getNodeTemplate:getNodeTemplate", { "name": args.name, diff --git a/sdk/nodejs/getPodSecurityAdmissionConfigurationTemplate.ts b/sdk/nodejs/getPodSecurityAdmissionConfigurationTemplate.ts index 12956c02..811bbe2d 100644 --- a/sdk/nodejs/getPodSecurityAdmissionConfigurationTemplate.ts +++ b/sdk/nodejs/getPodSecurityAdmissionConfigurationTemplate.ts @@ -39,7 +39,7 @@ export interface GetPodSecurityAdmissionConfigurationTemplateResult { readonly labels: {[key: string]: string}; readonly name: string; } -export function getPodSecurityAdmissionConfigurationTemplateOutput(args: GetPodSecurityAdmissionConfigurationTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getPodSecurityAdmissionConfigurationTemplateOutput(args: GetPodSecurityAdmissionConfigurationTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getPodSecurityAdmissionConfigurationTemplate:getPodSecurityAdmissionConfigurationTemplate", { "annotations": args.annotations, diff --git a/sdk/nodejs/getPrincipal.ts b/sdk/nodejs/getPrincipal.ts index f0f31c47..a21e3ba9 100644 --- a/sdk/nodejs/getPrincipal.ts +++ b/sdk/nodejs/getPrincipal.ts @@ -65,7 +65,7 @@ export interface GetPrincipalResult { * }); * ``` */ -export function getPrincipalOutput(args: GetPrincipalOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getPrincipalOutput(args: GetPrincipalOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getPrincipal:getPrincipal", { "name": args.name, diff --git a/sdk/nodejs/getProject.ts b/sdk/nodejs/getProject.ts index a429383b..9ba2fa23 100644 --- a/sdk/nodejs/getProject.ts +++ b/sdk/nodejs/getProject.ts @@ -69,7 +69,7 @@ export interface GetProjectResult { /** * ## Example Usage */ -export function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getProject:getProject", { "clusterId": args.clusterId, diff --git a/sdk/nodejs/getProjectRoleTemplateBinding.ts b/sdk/nodejs/getProjectRoleTemplateBinding.ts index 7947916f..55a36b85 100644 --- a/sdk/nodejs/getProjectRoleTemplateBinding.ts +++ b/sdk/nodejs/getProjectRoleTemplateBinding.ts @@ -97,7 +97,7 @@ export interface GetProjectRoleTemplateBindingResult { * }); * ``` */ -export function getProjectRoleTemplateBindingOutput(args: GetProjectRoleTemplateBindingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getProjectRoleTemplateBindingOutput(args: GetProjectRoleTemplateBindingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding", { "name": args.name, diff --git a/sdk/nodejs/getRegistry.ts b/sdk/nodejs/getRegistry.ts index 4c6dc6c0..875f6f19 100644 --- a/sdk/nodejs/getRegistry.ts +++ b/sdk/nodejs/getRegistry.ts @@ -125,7 +125,7 @@ export interface GetRegistryResult { * }); * ``` */ -export function getRegistryOutput(args: GetRegistryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getRegistryOutput(args: GetRegistryOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getRegistry:getRegistry", { "name": args.name, diff --git a/sdk/nodejs/getRoleTemplate.ts b/sdk/nodejs/getRoleTemplate.ts index cd95e6a7..a0a27679 100644 --- a/sdk/nodejs/getRoleTemplate.ts +++ b/sdk/nodejs/getRoleTemplate.ts @@ -120,7 +120,7 @@ export interface GetRoleTemplateResult { * }); * ``` */ -export function getRoleTemplateOutput(args: GetRoleTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getRoleTemplateOutput(args: GetRoleTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getRoleTemplate:getRoleTemplate", { "context": args.context, diff --git a/sdk/nodejs/getSecret.ts b/sdk/nodejs/getSecret.ts index 39fe02a9..0fb19361 100644 --- a/sdk/nodejs/getSecret.ts +++ b/sdk/nodejs/getSecret.ts @@ -123,7 +123,7 @@ export interface GetSecretResult { * }); * ``` */ -export function getSecretOutput(args: GetSecretOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getSecretOutput(args: GetSecretOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getSecret:getSecret", { "name": args.name, diff --git a/sdk/nodejs/getSecretV2.ts b/sdk/nodejs/getSecretV2.ts index 4ffe3a59..ad01b79f 100644 --- a/sdk/nodejs/getSecretV2.ts +++ b/sdk/nodejs/getSecretV2.ts @@ -73,7 +73,7 @@ export interface GetSecretV2Result { /** * Use this data source to retrieve information about a Rancher2 secret v2. Secret v2 resource is available at Rancher v2.5.x and above. */ -export function getSecretV2Output(args: GetSecretV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getSecretV2Output(args: GetSecretV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getSecretV2:getSecretV2", { "clusterId": args.clusterId, diff --git a/sdk/nodejs/getSetting.ts b/sdk/nodejs/getSetting.ts index 07a4625b..4baa8689 100644 --- a/sdk/nodejs/getSetting.ts +++ b/sdk/nodejs/getSetting.ts @@ -63,7 +63,7 @@ export interface GetSettingResult { * }); * ``` */ -export function getSettingOutput(args: GetSettingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getSettingOutput(args: GetSettingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getSetting:getSetting", { "name": args.name, diff --git a/sdk/nodejs/getStorageClassV2.ts b/sdk/nodejs/getStorageClassV2.ts index 35fe04db..dbc03751 100644 --- a/sdk/nodejs/getStorageClassV2.ts +++ b/sdk/nodejs/getStorageClassV2.ts @@ -79,7 +79,7 @@ export interface GetStorageClassV2Result { /** * Use this data source to retrieve information about a Rancher2 Storage Class v2. Storage Class v2 resource is available at Rancher v2.5.x and above. */ -export function getStorageClassV2Output(args: GetStorageClassV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getStorageClassV2Output(args: GetStorageClassV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getStorageClassV2:getStorageClassV2", { "clusterId": args.clusterId, diff --git a/sdk/nodejs/getUser.ts b/sdk/nodejs/getUser.ts index cbb79955..bee1703a 100644 --- a/sdk/nodejs/getUser.ts +++ b/sdk/nodejs/getUser.ts @@ -95,7 +95,7 @@ export interface GetUserResult { * }); * ``` */ -export function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("rancher2:index/getUser:getUser", { diff --git a/sdk/python/pulumi_rancher2/get_app.py b/sdk/python/pulumi_rancher2/get_app.py index 0cbe3f50..16708632 100644 --- a/sdk/python/pulumi_rancher2/get_app.py +++ b/sdk/python/pulumi_rancher2/get_app.py @@ -248,7 +248,7 @@ def get_app_output(annotations: Optional[pulumi.Input[Optional[Mapping[str, str] name: Optional[pulumi.Input[str]] = None, project_id: Optional[pulumi.Input[str]] = None, target_namespace: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAppResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAppResult]: """ Use this data source to retrieve information about a Rancher v2 app. @@ -274,7 +274,7 @@ def get_app_output(annotations: Optional[pulumi.Input[Optional[Mapping[str, str] __args__['name'] = name __args__['projectId'] = project_id __args__['targetNamespace'] = target_namespace - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getApp:getApp', __args__, opts=opts, typ=GetAppResult) return __ret__.apply(lambda __response__: GetAppResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_catalog.py b/sdk/python/pulumi_rancher2/get_catalog.py index f7ae788c..e0b7f9aa 100644 --- a/sdk/python/pulumi_rancher2/get_catalog.py +++ b/sdk/python/pulumi_rancher2/get_catalog.py @@ -241,7 +241,7 @@ def get_catalog(name: Optional[str] = None, version=pulumi.get(__ret__, 'version')) def get_catalog_output(name: Optional[pulumi.Input[str]] = None, scope: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogResult]: """ Use this data source to retrieve information about a Rancher v2 catalog. @@ -261,7 +261,7 @@ def get_catalog_output(name: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['name'] = name __args__['scope'] = scope - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getCatalog:getCatalog', __args__, opts=opts, typ=GetCatalogResult) return __ret__.apply(lambda __response__: GetCatalogResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_catalog_v2.py b/sdk/python/pulumi_rancher2/get_catalog_v2.py index 6d3aceb7..8eb47807 100644 --- a/sdk/python/pulumi_rancher2/get_catalog_v2.py +++ b/sdk/python/pulumi_rancher2/get_catalog_v2.py @@ -310,7 +310,7 @@ def get_catalog_v2_output(cluster_id: Optional[pulumi.Input[str]] = None, exponential_backoff_min_wait: Optional[pulumi.Input[Optional[int]]] = None, insecure_plain_http: Optional[pulumi.Input[Optional[bool]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogV2Result]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogV2Result]: """ Use this data source to retrieve information about a Rancher2 catalog v2. Catalog v2 resource is available at Rancher v2.5.x and above. @@ -325,7 +325,7 @@ def get_catalog_v2_output(cluster_id: Optional[pulumi.Input[str]] = None, __args__['exponentialBackoffMinWait'] = exponential_backoff_min_wait __args__['insecurePlainHttp'] = insecure_plain_http __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getCatalogV2:getCatalogV2', __args__, opts=opts, typ=GetCatalogV2Result) return __ret__.apply(lambda __response__: GetCatalogV2Result( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_certificate.py b/sdk/python/pulumi_rancher2/get_certificate.py index f1841e30..d4b9ccd0 100644 --- a/sdk/python/pulumi_rancher2/get_certificate.py +++ b/sdk/python/pulumi_rancher2/get_certificate.py @@ -180,7 +180,7 @@ def get_certificate(name: Optional[str] = None, def get_certificate_output(name: Optional[pulumi.Input[str]] = None, namespace_id: Optional[pulumi.Input[Optional[str]]] = None, project_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCertificateResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCertificateResult]: """ Use this data source to retrieve information about a Rancher v2 certificate. @@ -218,7 +218,7 @@ def get_certificate_output(name: Optional[pulumi.Input[str]] = None, __args__['name'] = name __args__['namespaceId'] = namespace_id __args__['projectId'] = project_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getCertificate:getCertificate', __args__, opts=opts, typ=GetCertificateResult) return __ret__.apply(lambda __response__: GetCertificateResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_cloud_credential.py b/sdk/python/pulumi_rancher2/get_cloud_credential.py index 77e9935c..fa182e7b 100644 --- a/sdk/python/pulumi_rancher2/get_cloud_credential.py +++ b/sdk/python/pulumi_rancher2/get_cloud_credential.py @@ -110,7 +110,7 @@ def get_cloud_credential(name: Optional[str] = None, labels=pulumi.get(__ret__, 'labels'), name=pulumi.get(__ret__, 'name')) def get_cloud_credential_output(name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCloudCredentialResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCloudCredentialResult]: """ Use this data source to retrieve information about a Rancher v2 Cloud Credential. @@ -128,7 +128,7 @@ def get_cloud_credential_output(name: Optional[pulumi.Input[str]] = None, """ __args__ = dict() __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getCloudCredential:getCloudCredential', __args__, opts=opts, typ=GetCloudCredentialResult) return __ret__.apply(lambda __response__: GetCloudCredentialResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_cluster.py b/sdk/python/pulumi_rancher2/get_cluster.py index 1ba542d5..1afe7cd1 100644 --- a/sdk/python/pulumi_rancher2/get_cluster.py +++ b/sdk/python/pulumi_rancher2/get_cluster.py @@ -449,7 +449,7 @@ def get_cluster(default_pod_security_admission_configuration_template_name: Opti system_project_id=pulumi.get(__ret__, 'system_project_id')) def get_cluster_output(default_pod_security_admission_configuration_template_name: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterResult]: """ Use this data source to retrieve information about a Rancher v2 cluster. @@ -468,7 +468,7 @@ def get_cluster_output(default_pod_security_admission_configuration_template_nam __args__ = dict() __args__['defaultPodSecurityAdmissionConfigurationTemplateName'] = default_pod_security_admission_configuration_template_name __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getCluster:getCluster', __args__, opts=opts, typ=GetClusterResult) return __ret__.apply(lambda __response__: GetClusterResult( agent_env_vars=pulumi.get(__response__, 'agent_env_vars'), diff --git a/sdk/python/pulumi_rancher2/get_cluster_driver.py b/sdk/python/pulumi_rancher2/get_cluster_driver.py index c88f55f9..250cbbed 100644 --- a/sdk/python/pulumi_rancher2/get_cluster_driver.py +++ b/sdk/python/pulumi_rancher2/get_cluster_driver.py @@ -202,7 +202,7 @@ def get_cluster_driver(name: Optional[str] = None, whitelist_domains=pulumi.get(__ret__, 'whitelist_domains')) def get_cluster_driver_output(name: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterDriverResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterDriverResult]: """ Use this data source to retrieve information about a Rancher v2 Cluster Driver resource. @@ -222,7 +222,7 @@ def get_cluster_driver_output(name: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['name'] = name __args__['url'] = url - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getClusterDriver:getClusterDriver', __args__, opts=opts, typ=GetClusterDriverResult) return __ret__.apply(lambda __response__: GetClusterDriverResult( active=pulumi.get(__response__, 'active'), diff --git a/sdk/python/pulumi_rancher2/get_cluster_role_template_binding.py b/sdk/python/pulumi_rancher2/get_cluster_role_template_binding.py index d526c7ee..500a9683 100644 --- a/sdk/python/pulumi_rancher2/get_cluster_role_template_binding.py +++ b/sdk/python/pulumi_rancher2/get_cluster_role_template_binding.py @@ -191,7 +191,7 @@ def get_cluster_role_template_binding(cluster_id: Optional[str] = None, def get_cluster_role_template_binding_output(cluster_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, role_template_id: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterRoleTemplateBindingResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterRoleTemplateBindingResult]: """ Use this data source to retrieve information about a Rancher v2 cluster role template binding. @@ -214,7 +214,7 @@ def get_cluster_role_template_binding_output(cluster_id: Optional[pulumi.Input[s __args__['clusterId'] = cluster_id __args__['name'] = name __args__['roleTemplateId'] = role_template_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding', __args__, opts=opts, typ=GetClusterRoleTemplateBindingResult) return __ret__.apply(lambda __response__: GetClusterRoleTemplateBindingResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_cluster_template.py b/sdk/python/pulumi_rancher2/get_cluster_template.py index 635a5e96..e3dadbc5 100644 --- a/sdk/python/pulumi_rancher2/get_cluster_template.py +++ b/sdk/python/pulumi_rancher2/get_cluster_template.py @@ -173,7 +173,7 @@ def get_cluster_template_output(annotations: Optional[pulumi.Input[Optional[Mapp description: Optional[pulumi.Input[Optional[str]]] = None, labels: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterTemplateResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterTemplateResult]: """ Use this data source to retrieve information about a Rancher v2 cluster template. @@ -198,7 +198,7 @@ def get_cluster_template_output(annotations: Optional[pulumi.Input[Optional[Mapp __args__['description'] = description __args__['labels'] = labels __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getClusterTemplate:getClusterTemplate', __args__, opts=opts, typ=GetClusterTemplateResult) return __ret__.apply(lambda __response__: GetClusterTemplateResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_cluster_v2.py b/sdk/python/pulumi_rancher2/get_cluster_v2.py index e6de347b..1f74747a 100644 --- a/sdk/python/pulumi_rancher2/get_cluster_v2.py +++ b/sdk/python/pulumi_rancher2/get_cluster_v2.py @@ -263,7 +263,7 @@ def get_cluster_v2(fleet_namespace: Optional[str] = None, rke_config=pulumi.get(__ret__, 'rke_config')) def get_cluster_v2_output(fleet_namespace: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterV2Result]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterV2Result]: """ Use this data source to retrieve information about a Rancher v2 cluster. @@ -284,7 +284,7 @@ def get_cluster_v2_output(fleet_namespace: Optional[pulumi.Input[Optional[str]]] __args__ = dict() __args__['fleetNamespace'] = fleet_namespace __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getClusterV2:getClusterV2', __args__, opts=opts, typ=GetClusterV2Result) return __ret__.apply(lambda __response__: GetClusterV2Result( agent_env_vars=pulumi.get(__response__, 'agent_env_vars'), diff --git a/sdk/python/pulumi_rancher2/get_config_map_v2.py b/sdk/python/pulumi_rancher2/get_config_map_v2.py index b4f54e53..438a8315 100644 --- a/sdk/python/pulumi_rancher2/get_config_map_v2.py +++ b/sdk/python/pulumi_rancher2/get_config_map_v2.py @@ -168,7 +168,7 @@ def get_config_map_v2(cluster_id: Optional[str] = None, def get_config_map_v2_output(cluster_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConfigMapV2Result]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConfigMapV2Result]: """ Use this data source to retrieve information about a Rancher2 configMap v2. ConfigMap v2 resource is available at Rancher v2.5.x and above. @@ -181,7 +181,7 @@ def get_config_map_v2_output(cluster_id: Optional[pulumi.Input[str]] = None, __args__['clusterId'] = cluster_id __args__['name'] = name __args__['namespace'] = namespace - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getConfigMapV2:getConfigMapV2', __args__, opts=opts, typ=GetConfigMapV2Result) return __ret__.apply(lambda __response__: GetConfigMapV2Result( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_etcd_backup.py b/sdk/python/pulumi_rancher2/get_etcd_backup.py index ddf7603f..1641cebb 100644 --- a/sdk/python/pulumi_rancher2/get_etcd_backup.py +++ b/sdk/python/pulumi_rancher2/get_etcd_backup.py @@ -178,7 +178,7 @@ def get_etcd_backup(cluster_id: Optional[str] = None, namespace_id=pulumi.get(__ret__, 'namespace_id')) def get_etcd_backup_output(cluster_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEtcdBackupResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEtcdBackupResult]: """ Use this data source to retrieve information about a Rancher v2 etcd backup. @@ -199,7 +199,7 @@ def get_etcd_backup_output(cluster_id: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['clusterId'] = cluster_id __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getEtcdBackup:getEtcdBackup', __args__, opts=opts, typ=GetEtcdBackupResult) return __ret__.apply(lambda __response__: GetEtcdBackupResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_global_role.py b/sdk/python/pulumi_rancher2/get_global_role.py index 96201111..a3cc51db 100644 --- a/sdk/python/pulumi_rancher2/get_global_role.py +++ b/sdk/python/pulumi_rancher2/get_global_role.py @@ -180,7 +180,7 @@ def get_global_role(inherited_cluster_roles: Optional[Sequence[str]] = None, rules=pulumi.get(__ret__, 'rules')) def get_global_role_output(inherited_cluster_roles: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGlobalRoleResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGlobalRoleResult]: """ Use this data source to retrieve information about a Rancher v2 global role resource. @@ -200,7 +200,7 @@ def get_global_role_output(inherited_cluster_roles: Optional[pulumi.Input[Option __args__ = dict() __args__['inheritedClusterRoles'] = inherited_cluster_roles __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getGlobalRole:getGlobalRole', __args__, opts=opts, typ=GetGlobalRoleResult) return __ret__.apply(lambda __response__: GetGlobalRoleResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_global_role_binding.py b/sdk/python/pulumi_rancher2/get_global_role_binding.py index adb25e15..639b9653 100644 --- a/sdk/python/pulumi_rancher2/get_global_role_binding.py +++ b/sdk/python/pulumi_rancher2/get_global_role_binding.py @@ -151,7 +151,7 @@ def get_global_role_binding(global_role_id: Optional[str] = None, user_id=pulumi.get(__ret__, 'user_id')) def get_global_role_binding_output(global_role_id: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGlobalRoleBindingResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGlobalRoleBindingResult]: """ Use this data source to retrieve information about a Rancher v2 global role binding. @@ -172,7 +172,7 @@ def get_global_role_binding_output(global_role_id: Optional[pulumi.Input[Optiona __args__ = dict() __args__['globalRoleId'] = global_role_id __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding', __args__, opts=opts, typ=GetGlobalRoleBindingResult) return __ret__.apply(lambda __response__: GetGlobalRoleBindingResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_multi_cluster_app.py b/sdk/python/pulumi_rancher2/get_multi_cluster_app.py index 64340cc6..b5ca9cdb 100644 --- a/sdk/python/pulumi_rancher2/get_multi_cluster_app.py +++ b/sdk/python/pulumi_rancher2/get_multi_cluster_app.py @@ -254,7 +254,7 @@ def get_multi_cluster_app(name: Optional[str] = None, template_version_id=pulumi.get(__ret__, 'template_version_id'), upgrade_strategies=pulumi.get(__ret__, 'upgrade_strategies')) def get_multi_cluster_app_output(name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMultiClusterAppResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMultiClusterAppResult]: """ Use this data source to retrieve information about a Rancher v2 multi cluster app. @@ -272,7 +272,7 @@ def get_multi_cluster_app_output(name: Optional[pulumi.Input[str]] = None, """ __args__ = dict() __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getMultiClusterApp:getMultiClusterApp', __args__, opts=opts, typ=GetMultiClusterAppResult) return __ret__.apply(lambda __response__: GetMultiClusterAppResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_namespace.py b/sdk/python/pulumi_rancher2/get_namespace.py index 7a81bcc8..f050e6d3 100644 --- a/sdk/python/pulumi_rancher2/get_namespace.py +++ b/sdk/python/pulumi_rancher2/get_namespace.py @@ -165,7 +165,7 @@ def get_namespace(name: Optional[str] = None, resource_quota=pulumi.get(__ret__, 'resource_quota')) def get_namespace_output(name: Optional[pulumi.Input[str]] = None, project_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNamespaceResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNamespaceResult]: """ Use this data source to retrieve information about a Rancher v2 namespace. @@ -186,7 +186,7 @@ def get_namespace_output(name: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['name'] = name __args__['projectId'] = project_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getNamespace:getNamespace', __args__, opts=opts, typ=GetNamespaceResult) return __ret__.apply(lambda __response__: GetNamespaceResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_node_driver.py b/sdk/python/pulumi_rancher2/get_node_driver.py index 01a18b8f..fb0311c5 100644 --- a/sdk/python/pulumi_rancher2/get_node_driver.py +++ b/sdk/python/pulumi_rancher2/get_node_driver.py @@ -215,7 +215,7 @@ def get_node_driver(name: Optional[str] = None, whitelist_domains=pulumi.get(__ret__, 'whitelist_domains')) def get_node_driver_output(name: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNodeDriverResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNodeDriverResult]: """ Use this data source to retrieve information about a Rancher v2 Node Driver resource. @@ -235,7 +235,7 @@ def get_node_driver_output(name: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['name'] = name __args__['url'] = url - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getNodeDriver:getNodeDriver', __args__, opts=opts, typ=GetNodeDriverResult) return __ret__.apply(lambda __response__: GetNodeDriverResult( active=pulumi.get(__response__, 'active'), diff --git a/sdk/python/pulumi_rancher2/get_node_pool.py b/sdk/python/pulumi_rancher2/get_node_pool.py index 40642297..269e15ed 100644 --- a/sdk/python/pulumi_rancher2/get_node_pool.py +++ b/sdk/python/pulumi_rancher2/get_node_pool.py @@ -231,7 +231,7 @@ def get_node_pool(cluster_id: Optional[str] = None, def get_node_pool_output(cluster_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, node_template_id: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNodePoolResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNodePoolResult]: """ Use this data source to retrieve information about a Rancher v2 Node Pool resource. @@ -254,7 +254,7 @@ def get_node_pool_output(cluster_id: Optional[pulumi.Input[str]] = None, __args__['clusterId'] = cluster_id __args__['name'] = name __args__['nodeTemplateId'] = node_template_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getNodePool:getNodePool', __args__, opts=opts, typ=GetNodePoolResult) return __ret__.apply(lambda __response__: GetNodePoolResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_node_template.py b/sdk/python/pulumi_rancher2/get_node_template.py index 3682fd65..b0672729 100644 --- a/sdk/python/pulumi_rancher2/get_node_template.py +++ b/sdk/python/pulumi_rancher2/get_node_template.py @@ -271,7 +271,7 @@ def get_node_template(name: Optional[str] = None, use_internal_ip_address=pulumi.get(__ret__, 'use_internal_ip_address')) def get_node_template_output(name: Optional[pulumi.Input[str]] = None, use_internal_ip_address: Optional[pulumi.Input[Optional[bool]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNodeTemplateResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNodeTemplateResult]: """ Use this data source to retrieve information about a Rancher v2 Node Template resource. @@ -291,7 +291,7 @@ def get_node_template_output(name: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['name'] = name __args__['useInternalIpAddress'] = use_internal_ip_address - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getNodeTemplate:getNodeTemplate', __args__, opts=opts, typ=GetNodeTemplateResult) return __ret__.apply(lambda __response__: GetNodeTemplateResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_pod_security_admission_configuration_template.py b/sdk/python/pulumi_rancher2/get_pod_security_admission_configuration_template.py index 3f7ca3c0..c0538c41 100644 --- a/sdk/python/pulumi_rancher2/get_pod_security_admission_configuration_template.py +++ b/sdk/python/pulumi_rancher2/get_pod_security_admission_configuration_template.py @@ -129,7 +129,7 @@ def get_pod_security_admission_configuration_template(annotations: Optional[Mapp def get_pod_security_admission_configuration_template_output(annotations: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None, labels: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPodSecurityAdmissionConfigurationTemplateResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPodSecurityAdmissionConfigurationTemplateResult]: """ Use this data source to access information about an existing resource. """ @@ -137,7 +137,7 @@ def get_pod_security_admission_configuration_template_output(annotations: Option __args__['annotations'] = annotations __args__['labels'] = labels __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getPodSecurityAdmissionConfigurationTemplate:getPodSecurityAdmissionConfigurationTemplate', __args__, opts=opts, typ=GetPodSecurityAdmissionConfigurationTemplateResult) return __ret__.apply(lambda __response__: GetPodSecurityAdmissionConfigurationTemplateResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_principal.py b/sdk/python/pulumi_rancher2/get_principal.py index ab0ea9b1..975407b7 100644 --- a/sdk/python/pulumi_rancher2/get_principal.py +++ b/sdk/python/pulumi_rancher2/get_principal.py @@ -98,7 +98,7 @@ def get_principal(name: Optional[str] = None, type=pulumi.get(__ret__, 'type')) def get_principal_output(name: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPrincipalResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPrincipalResult]: """ Use this data source to retrieve information about a Rancher v2 Principal resource. @@ -118,7 +118,7 @@ def get_principal_output(name: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['name'] = name __args__['type'] = type - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getPrincipal:getPrincipal', __args__, opts=opts, typ=GetPrincipalResult) return __ret__.apply(lambda __response__: GetPrincipalResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_rancher2/get_project.py b/sdk/python/pulumi_rancher2/get_project.py index 9abd4b56..06e6c3ac 100644 --- a/sdk/python/pulumi_rancher2/get_project.py +++ b/sdk/python/pulumi_rancher2/get_project.py @@ -168,7 +168,7 @@ def get_project(cluster_id: Optional[str] = None, uuid=pulumi.get(__ret__, 'uuid')) def get_project_output(cluster_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProjectResult]: """ ## Example Usage @@ -179,7 +179,7 @@ def get_project_output(cluster_id: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['clusterId'] = cluster_id __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getProject:getProject', __args__, opts=opts, typ=GetProjectResult) return __ret__.apply(lambda __response__: GetProjectResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_project_role_template_binding.py b/sdk/python/pulumi_rancher2/get_project_role_template_binding.py index 2a1d1691..bd1619b7 100644 --- a/sdk/python/pulumi_rancher2/get_project_role_template_binding.py +++ b/sdk/python/pulumi_rancher2/get_project_role_template_binding.py @@ -191,7 +191,7 @@ def get_project_role_template_binding(name: Optional[str] = None, def get_project_role_template_binding_output(name: Optional[pulumi.Input[str]] = None, project_id: Optional[pulumi.Input[str]] = None, role_template_id: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectRoleTemplateBindingResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProjectRoleTemplateBindingResult]: """ Use this data source to retrieve information about a Rancher v2 project role template binding. @@ -214,7 +214,7 @@ def get_project_role_template_binding_output(name: Optional[pulumi.Input[str]] = __args__['name'] = name __args__['projectId'] = project_id __args__['roleTemplateId'] = role_template_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding', __args__, opts=opts, typ=GetProjectRoleTemplateBindingResult) return __ret__.apply(lambda __response__: GetProjectRoleTemplateBindingResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_registry.py b/sdk/python/pulumi_rancher2/get_registry.py index ae6ce74c..8c6eef2b 100644 --- a/sdk/python/pulumi_rancher2/get_registry.py +++ b/sdk/python/pulumi_rancher2/get_registry.py @@ -181,7 +181,7 @@ def get_registry(name: Optional[str] = None, def get_registry_output(name: Optional[pulumi.Input[str]] = None, namespace_id: Optional[pulumi.Input[Optional[str]]] = None, project_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRegistryResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRegistryResult]: """ Use this data source to retrieve information about a Rancher v2 docker registry. @@ -219,7 +219,7 @@ def get_registry_output(name: Optional[pulumi.Input[str]] = None, __args__['name'] = name __args__['namespaceId'] = namespace_id __args__['projectId'] = project_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getRegistry:getRegistry', __args__, opts=opts, typ=GetRegistryResult) return __ret__.apply(lambda __response__: GetRegistryResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_role_template.py b/sdk/python/pulumi_rancher2/get_role_template.py index 0906defe..42f21fa0 100644 --- a/sdk/python/pulumi_rancher2/get_role_template.py +++ b/sdk/python/pulumi_rancher2/get_role_template.py @@ -260,7 +260,7 @@ def get_role_template(context: Optional[str] = None, def get_role_template_output(context: Optional[pulumi.Input[Optional[str]]] = None, external_rules: Optional[pulumi.Input[Optional[Sequence[Union['GetRoleTemplateExternalRuleArgs', 'GetRoleTemplateExternalRuleArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleTemplateResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRoleTemplateResult]: """ Use this data source to retrieve information about a Rancher v2 role template resource. @@ -282,7 +282,7 @@ def get_role_template_output(context: Optional[pulumi.Input[Optional[str]]] = No __args__['context'] = context __args__['externalRules'] = external_rules __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getRoleTemplate:getRoleTemplate', __args__, opts=opts, typ=GetRoleTemplateResult) return __ret__.apply(lambda __response__: GetRoleTemplateResult( administrative=pulumi.get(__response__, 'administrative'), diff --git a/sdk/python/pulumi_rancher2/get_secret.py b/sdk/python/pulumi_rancher2/get_secret.py index 874383f0..88ebc6a2 100644 --- a/sdk/python/pulumi_rancher2/get_secret.py +++ b/sdk/python/pulumi_rancher2/get_secret.py @@ -180,7 +180,7 @@ def get_secret(name: Optional[str] = None, def get_secret_output(name: Optional[pulumi.Input[str]] = None, namespace_id: Optional[pulumi.Input[Optional[str]]] = None, project_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecretResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecretResult]: """ Use this data source to retrieve information about a Rancher v2 secret. @@ -218,7 +218,7 @@ def get_secret_output(name: Optional[pulumi.Input[str]] = None, __args__['name'] = name __args__['namespaceId'] = namespace_id __args__['projectId'] = project_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getSecret:getSecret', __args__, opts=opts, typ=GetSecretResult) return __ret__.apply(lambda __response__: GetSecretResult( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_secret_v2.py b/sdk/python/pulumi_rancher2/get_secret_v2.py index 310909c0..a447e3d1 100644 --- a/sdk/python/pulumi_rancher2/get_secret_v2.py +++ b/sdk/python/pulumi_rancher2/get_secret_v2.py @@ -181,7 +181,7 @@ def get_secret_v2(cluster_id: Optional[str] = None, def get_secret_v2_output(cluster_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecretV2Result]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecretV2Result]: """ Use this data source to retrieve information about a Rancher2 secret v2. Secret v2 resource is available at Rancher v2.5.x and above. @@ -194,7 +194,7 @@ def get_secret_v2_output(cluster_id: Optional[pulumi.Input[str]] = None, __args__['clusterId'] = cluster_id __args__['name'] = name __args__['namespace'] = namespace - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getSecretV2:getSecretV2', __args__, opts=opts, typ=GetSecretV2Result) return __ret__.apply(lambda __response__: GetSecretV2Result( annotations=pulumi.get(__response__, 'annotations'), diff --git a/sdk/python/pulumi_rancher2/get_setting.py b/sdk/python/pulumi_rancher2/get_setting.py index 85515ca4..4dfb599e 100644 --- a/sdk/python/pulumi_rancher2/get_setting.py +++ b/sdk/python/pulumi_rancher2/get_setting.py @@ -97,7 +97,7 @@ def get_setting(name: Optional[str] = None, name=pulumi.get(__ret__, 'name'), value=pulumi.get(__ret__, 'value')) def get_setting_output(name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSettingResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSettingResult]: """ Use this data source to retrieve information about a Rancher v2 setting. @@ -115,7 +115,7 @@ def get_setting_output(name: Optional[pulumi.Input[str]] = None, """ __args__ = dict() __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getSetting:getSetting', __args__, opts=opts, typ=GetSettingResult) return __ret__.apply(lambda __response__: GetSettingResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_rancher2/get_storage_class_v2.py b/sdk/python/pulumi_rancher2/get_storage_class_v2.py index d6f25aee..86a88ad6 100644 --- a/sdk/python/pulumi_rancher2/get_storage_class_v2.py +++ b/sdk/python/pulumi_rancher2/get_storage_class_v2.py @@ -206,7 +206,7 @@ def get_storage_class_v2(cluster_id: Optional[str] = None, volume_binding_mode=pulumi.get(__ret__, 'volume_binding_mode')) def get_storage_class_v2_output(cluster_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStorageClassV2Result]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetStorageClassV2Result]: """ Use this data source to retrieve information about a Rancher2 Storage Class v2. Storage Class v2 resource is available at Rancher v2.5.x and above. @@ -217,7 +217,7 @@ def get_storage_class_v2_output(cluster_id: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['clusterId'] = cluster_id __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getStorageClassV2:getStorageClassV2', __args__, opts=opts, typ=GetStorageClassV2Result) return __ret__.apply(lambda __response__: GetStorageClassV2Result( allow_volume_expansion=pulumi.get(__response__, 'allow_volume_expansion'), diff --git a/sdk/python/pulumi_rancher2/get_user.py b/sdk/python/pulumi_rancher2/get_user.py index 2536632f..aaac2b53 100644 --- a/sdk/python/pulumi_rancher2/get_user.py +++ b/sdk/python/pulumi_rancher2/get_user.py @@ -180,7 +180,7 @@ def get_user(is_external: Optional[bool] = None, def get_user_output(is_external: Optional[pulumi.Input[Optional[bool]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, username: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUserResult]: """ Use this data source to retrieve information about a Rancher v2 user @@ -202,7 +202,7 @@ def get_user_output(is_external: Optional[pulumi.Input[Optional[bool]]] = None, __args__['isExternal'] = is_external __args__['name'] = name __args__['username'] = username - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('rancher2:index/getUser:getUser', __args__, opts=opts, typ=GetUserResult) return __ret__.apply(lambda __response__: GetUserResult( annotations=pulumi.get(__response__, 'annotations'),