rancher2.GlobalDns
Explore with Pulumi AI
Provides a Rancher V2 Global DNS resource. This can be used to create Global DNS records for Rancher V2.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
// Create a new rancher2 Global DNS Provider
const foo = new rancher2.GlobalDnsProvider("foo", {
name: "foo",
rootDomain: "example.com",
route53Config: {
accessKey: "YYYYYYYYYYYYYYYYYYYY",
secretKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
zoneType: "private",
region: "us-east-1",
},
});
// Create a new rancher2 Global DNS using project IDs
const fooGlobalDns = new rancher2.GlobalDns("foo", {
name: "foo",
fqdn: "foo.example.com",
providerId: foo.id,
projectIds: [
"project1",
"project2",
],
});
import pulumi
import pulumi_rancher2 as rancher2
# Create a new rancher2 Global DNS Provider
foo = rancher2.GlobalDnsProvider("foo",
name="foo",
root_domain="example.com",
route53_config={
"access_key": "YYYYYYYYYYYYYYYYYYYY",
"secret_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"zone_type": "private",
"region": "us-east-1",
})
# Create a new rancher2 Global DNS using project IDs
foo_global_dns = rancher2.GlobalDns("foo",
name="foo",
fqdn="foo.example.com",
provider_id=foo.id,
project_ids=[
"project1",
"project2",
])
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v7/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a new rancher2 Global DNS Provider
foo, err := rancher2.NewGlobalDnsProvider(ctx, "foo", &rancher2.GlobalDnsProviderArgs{
Name: pulumi.String("foo"),
RootDomain: pulumi.String("example.com"),
Route53Config: &rancher2.GlobalDnsProviderRoute53ConfigArgs{
AccessKey: pulumi.String("YYYYYYYYYYYYYYYYYYYY"),
SecretKey: pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
ZoneType: pulumi.String("private"),
Region: pulumi.String("us-east-1"),
},
})
if err != nil {
return err
}
// Create a new rancher2 Global DNS using project IDs
_, err = rancher2.NewGlobalDns(ctx, "foo", &rancher2.GlobalDnsArgs{
Name: pulumi.String("foo"),
Fqdn: pulumi.String("foo.example.com"),
ProviderId: foo.ID(),
ProjectIds: pulumi.StringArray{
pulumi.String("project1"),
pulumi.String("project2"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() =>
{
// Create a new rancher2 Global DNS Provider
var foo = new Rancher2.GlobalDnsProvider("foo", new()
{
Name = "foo",
RootDomain = "example.com",
Route53Config = new Rancher2.Inputs.GlobalDnsProviderRoute53ConfigArgs
{
AccessKey = "YYYYYYYYYYYYYYYYYYYY",
SecretKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
ZoneType = "private",
Region = "us-east-1",
},
});
// Create a new rancher2 Global DNS using project IDs
var fooGlobalDns = new Rancher2.GlobalDns("foo", new()
{
Name = "foo",
Fqdn = "foo.example.com",
ProviderId = foo.Id,
ProjectIds = new[]
{
"project1",
"project2",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.GlobalDnsProvider;
import com.pulumi.rancher2.GlobalDnsProviderArgs;
import com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs;
import com.pulumi.rancher2.GlobalDns;
import com.pulumi.rancher2.GlobalDnsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Create a new rancher2 Global DNS Provider
var foo = new GlobalDnsProvider("foo", GlobalDnsProviderArgs.builder()
.name("foo")
.rootDomain("example.com")
.route53Config(GlobalDnsProviderRoute53ConfigArgs.builder()
.accessKey("YYYYYYYYYYYYYYYYYYYY")
.secretKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
.zoneType("private")
.region("us-east-1")
.build())
.build());
// Create a new rancher2 Global DNS using project IDs
var fooGlobalDns = new GlobalDns("fooGlobalDns", GlobalDnsArgs.builder()
.name("foo")
.fqdn("foo.example.com")
.providerId(foo.id())
.projectIds(
"project1",
"project2")
.build());
}
}
resources:
# Create a new rancher2 Global DNS Provider
foo:
type: rancher2:GlobalDnsProvider
properties:
name: foo
rootDomain: example.com
route53Config:
accessKey: YYYYYYYYYYYYYYYYYYYY
secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
zoneType: private
region: us-east-1
# Create a new rancher2 Global DNS using project IDs
fooGlobalDns:
type: rancher2:GlobalDns
name: foo
properties:
name: foo
fqdn: foo.example.com
providerId: ${foo.id}
projectIds:
- project1
- project2
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
// Create a new rancher2 Global DNS Provider
const foo = new rancher2.GlobalDnsProvider("foo", {
name: "foo",
rootDomain: "example.com",
route53Config: {
accessKey: "YYYYYYYYYYYYYYYYYYYY",
secretKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
zoneType: "private",
region: "us-east-1",
},
});
// Create a new rancher2 Global DNS using MultiClusterApp ID
const fooGlobalDns = new rancher2.GlobalDns("foo", {
name: "foo",
fqdn: "foo.example.com",
providerId: foo.id,
multiClusterAppId: "<MCA_ID>",
});
import pulumi
import pulumi_rancher2 as rancher2
# Create a new rancher2 Global DNS Provider
foo = rancher2.GlobalDnsProvider("foo",
name="foo",
root_domain="example.com",
route53_config={
"access_key": "YYYYYYYYYYYYYYYYYYYY",
"secret_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"zone_type": "private",
"region": "us-east-1",
})
# Create a new rancher2 Global DNS using MultiClusterApp ID
foo_global_dns = rancher2.GlobalDns("foo",
name="foo",
fqdn="foo.example.com",
provider_id=foo.id,
multi_cluster_app_id="<MCA_ID>")
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v7/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a new rancher2 Global DNS Provider
foo, err := rancher2.NewGlobalDnsProvider(ctx, "foo", &rancher2.GlobalDnsProviderArgs{
Name: pulumi.String("foo"),
RootDomain: pulumi.String("example.com"),
Route53Config: &rancher2.GlobalDnsProviderRoute53ConfigArgs{
AccessKey: pulumi.String("YYYYYYYYYYYYYYYYYYYY"),
SecretKey: pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
ZoneType: pulumi.String("private"),
Region: pulumi.String("us-east-1"),
},
})
if err != nil {
return err
}
// Create a new rancher2 Global DNS using MultiClusterApp ID
_, err = rancher2.NewGlobalDns(ctx, "foo", &rancher2.GlobalDnsArgs{
Name: pulumi.String("foo"),
Fqdn: pulumi.String("foo.example.com"),
ProviderId: foo.ID(),
MultiClusterAppId: pulumi.String("<MCA_ID>"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() =>
{
// Create a new rancher2 Global DNS Provider
var foo = new Rancher2.GlobalDnsProvider("foo", new()
{
Name = "foo",
RootDomain = "example.com",
Route53Config = new Rancher2.Inputs.GlobalDnsProviderRoute53ConfigArgs
{
AccessKey = "YYYYYYYYYYYYYYYYYYYY",
SecretKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
ZoneType = "private",
Region = "us-east-1",
},
});
// Create a new rancher2 Global DNS using MultiClusterApp ID
var fooGlobalDns = new Rancher2.GlobalDns("foo", new()
{
Name = "foo",
Fqdn = "foo.example.com",
ProviderId = foo.Id,
MultiClusterAppId = "<MCA_ID>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.GlobalDnsProvider;
import com.pulumi.rancher2.GlobalDnsProviderArgs;
import com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs;
import com.pulumi.rancher2.GlobalDns;
import com.pulumi.rancher2.GlobalDnsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Create a new rancher2 Global DNS Provider
var foo = new GlobalDnsProvider("foo", GlobalDnsProviderArgs.builder()
.name("foo")
.rootDomain("example.com")
.route53Config(GlobalDnsProviderRoute53ConfigArgs.builder()
.accessKey("YYYYYYYYYYYYYYYYYYYY")
.secretKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
.zoneType("private")
.region("us-east-1")
.build())
.build());
// Create a new rancher2 Global DNS using MultiClusterApp ID
var fooGlobalDns = new GlobalDns("fooGlobalDns", GlobalDnsArgs.builder()
.name("foo")
.fqdn("foo.example.com")
.providerId(foo.id())
.multiClusterAppId("<MCA_ID>")
.build());
}
}
resources:
# Create a new rancher2 Global DNS Provider
foo:
type: rancher2:GlobalDnsProvider
properties:
name: foo
rootDomain: example.com
route53Config:
accessKey: YYYYYYYYYYYYYYYYYYYY
secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
zoneType: private
region: us-east-1
# Create a new rancher2 Global DNS using MultiClusterApp ID
fooGlobalDns:
type: rancher2:GlobalDns
name: foo
properties:
name: foo
fqdn: foo.example.com
providerId: ${foo.id}
multiClusterAppId: <MCA_ID>
Create GlobalDns Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GlobalDns(name: string, args: GlobalDnsArgs, opts?: CustomResourceOptions);
@overload
def GlobalDns(resource_name: str,
args: GlobalDnsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GlobalDns(resource_name: str,
opts: Optional[ResourceOptions] = None,
fqdn: Optional[str] = None,
provider_id: Optional[str] = None,
annotations: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
multi_cluster_app_id: Optional[str] = None,
name: Optional[str] = None,
project_ids: Optional[Sequence[str]] = None,
ttl: Optional[int] = None)
func NewGlobalDns(ctx *Context, name string, args GlobalDnsArgs, opts ...ResourceOption) (*GlobalDns, error)
public GlobalDns(string name, GlobalDnsArgs args, CustomResourceOptions? opts = null)
public GlobalDns(String name, GlobalDnsArgs args)
public GlobalDns(String name, GlobalDnsArgs args, CustomResourceOptions options)
type: rancher2:GlobalDns
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GlobalDnsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GlobalDnsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GlobalDnsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GlobalDnsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GlobalDnsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var globalDnsResource = new Rancher2.GlobalDns("globalDnsResource", new()
{
Fqdn = "string",
ProviderId = "string",
Annotations =
{
{ "string", "string" },
},
Labels =
{
{ "string", "string" },
},
MultiClusterAppId = "string",
Name = "string",
ProjectIds = new[]
{
"string",
},
Ttl = 0,
});
example, err := rancher2.NewGlobalDns(ctx, "globalDnsResource", &rancher2.GlobalDnsArgs{
Fqdn: pulumi.String("string"),
ProviderId: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
MultiClusterAppId: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectIds: pulumi.StringArray{
pulumi.String("string"),
},
Ttl: pulumi.Int(0),
})
var globalDnsResource = new GlobalDns("globalDnsResource", GlobalDnsArgs.builder()
.fqdn("string")
.providerId("string")
.annotations(Map.of("string", "string"))
.labels(Map.of("string", "string"))
.multiClusterAppId("string")
.name("string")
.projectIds("string")
.ttl(0)
.build());
global_dns_resource = rancher2.GlobalDns("globalDnsResource",
fqdn="string",
provider_id="string",
annotations={
"string": "string",
},
labels={
"string": "string",
},
multi_cluster_app_id="string",
name="string",
project_ids=["string"],
ttl=0)
const globalDnsResource = new rancher2.GlobalDns("globalDnsResource", {
fqdn: "string",
providerId: "string",
annotations: {
string: "string",
},
labels: {
string: "string",
},
multiClusterAppId: "string",
name: "string",
projectIds: ["string"],
ttl: 0,
});
type: rancher2:GlobalDns
properties:
annotations:
string: string
fqdn: string
labels:
string: string
multiClusterAppId: string
name: string
projectIds:
- string
providerId: string
ttl: 0
GlobalDns Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GlobalDns resource accepts the following input properties:
- Fqdn string
- The Global DNS record (string)
- Provider
Id string - The Global DNS provider ID to use (string)
- Annotations Dictionary<string, string>
- Annotations for Global DNS (map)
- Labels Dictionary<string, string>
- Labels for Global DNS (map)
- Multi
Cluster stringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - Name string
- The name of the Global DNS (string)
- Project
Ids List<string> - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - Ttl int
- TTL in seconds for DNS record. Default:
300
(int)
- Fqdn string
- The Global DNS record (string)
- Provider
Id string - The Global DNS provider ID to use (string)
- Annotations map[string]string
- Annotations for Global DNS (map)
- Labels map[string]string
- Labels for Global DNS (map)
- Multi
Cluster stringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - Name string
- The name of the Global DNS (string)
- Project
Ids []string - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - Ttl int
- TTL in seconds for DNS record. Default:
300
(int)
- fqdn String
- The Global DNS record (string)
- provider
Id String - The Global DNS provider ID to use (string)
- annotations Map<String,String>
- Annotations for Global DNS (map)
- labels Map<String,String>
- Labels for Global DNS (map)
- multi
Cluster StringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - name String
- The name of the Global DNS (string)
- project
Ids List<String> - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - ttl Integer
- TTL in seconds for DNS record. Default:
300
(int)
- fqdn string
- The Global DNS record (string)
- provider
Id string - The Global DNS provider ID to use (string)
- annotations {[key: string]: string}
- Annotations for Global DNS (map)
- labels {[key: string]: string}
- Labels for Global DNS (map)
- multi
Cluster stringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - name string
- The name of the Global DNS (string)
- project
Ids string[] - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - ttl number
- TTL in seconds for DNS record. Default:
300
(int)
- fqdn str
- The Global DNS record (string)
- provider_
id str - The Global DNS provider ID to use (string)
- annotations Mapping[str, str]
- Annotations for Global DNS (map)
- labels Mapping[str, str]
- Labels for Global DNS (map)
- multi_
cluster_ strapp_ id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - name str
- The name of the Global DNS (string)
- project_
ids Sequence[str] - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - ttl int
- TTL in seconds for DNS record. Default:
300
(int)
- fqdn String
- The Global DNS record (string)
- provider
Id String - The Global DNS provider ID to use (string)
- annotations Map<String>
- Annotations for Global DNS (map)
- labels Map<String>
- Labels for Global DNS (map)
- multi
Cluster StringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - name String
- The name of the Global DNS (string)
- project
Ids List<String> - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - ttl Number
- TTL in seconds for DNS record. Default:
300
(int)
Outputs
All input properties are implicitly available as output properties. Additionally, the GlobalDns resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GlobalDns Resource
Get an existing GlobalDns resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GlobalDnsState, opts?: CustomResourceOptions): GlobalDns
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
fqdn: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
multi_cluster_app_id: Optional[str] = None,
name: Optional[str] = None,
project_ids: Optional[Sequence[str]] = None,
provider_id: Optional[str] = None,
ttl: Optional[int] = None) -> GlobalDns
func GetGlobalDns(ctx *Context, name string, id IDInput, state *GlobalDnsState, opts ...ResourceOption) (*GlobalDns, error)
public static GlobalDns Get(string name, Input<string> id, GlobalDnsState? state, CustomResourceOptions? opts = null)
public static GlobalDns get(String name, Output<String> id, GlobalDnsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Annotations Dictionary<string, string>
- Annotations for Global DNS (map)
- Fqdn string
- The Global DNS record (string)
- Labels Dictionary<string, string>
- Labels for Global DNS (map)
- Multi
Cluster stringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - Name string
- The name of the Global DNS (string)
- Project
Ids List<string> - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - Provider
Id string - The Global DNS provider ID to use (string)
- Ttl int
- TTL in seconds for DNS record. Default:
300
(int)
- Annotations map[string]string
- Annotations for Global DNS (map)
- Fqdn string
- The Global DNS record (string)
- Labels map[string]string
- Labels for Global DNS (map)
- Multi
Cluster stringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - Name string
- The name of the Global DNS (string)
- Project
Ids []string - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - Provider
Id string - The Global DNS provider ID to use (string)
- Ttl int
- TTL in seconds for DNS record. Default:
300
(int)
- annotations Map<String,String>
- Annotations for Global DNS (map)
- fqdn String
- The Global DNS record (string)
- labels Map<String,String>
- Labels for Global DNS (map)
- multi
Cluster StringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - name String
- The name of the Global DNS (string)
- project
Ids List<String> - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - provider
Id String - The Global DNS provider ID to use (string)
- ttl Integer
- TTL in seconds for DNS record. Default:
300
(int)
- annotations {[key: string]: string}
- Annotations for Global DNS (map)
- fqdn string
- The Global DNS record (string)
- labels {[key: string]: string}
- Labels for Global DNS (map)
- multi
Cluster stringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - name string
- The name of the Global DNS (string)
- project
Ids string[] - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - provider
Id string - The Global DNS provider ID to use (string)
- ttl number
- TTL in seconds for DNS record. Default:
300
(int)
- annotations Mapping[str, str]
- Annotations for Global DNS (map)
- fqdn str
- The Global DNS record (string)
- labels Mapping[str, str]
- Labels for Global DNS (map)
- multi_
cluster_ strapp_ id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - name str
- The name of the Global DNS (string)
- project_
ids Sequence[str] - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - provider_
id str - The Global DNS provider ID to use (string)
- ttl int
- TTL in seconds for DNS record. Default:
300
(int)
- annotations Map<String>
- Annotations for Global DNS (map)
- fqdn String
- The Global DNS record (string)
- labels Map<String>
- Labels for Global DNS (map)
- multi
Cluster StringApp Id - The MultiCluster App ID to assign to the Global DNS. Conflicts with
project_ids
(string) - name String
- The name of the Global DNS (string)
- project
Ids List<String> - A list of project_ids to assign to the Global DNS. Conflicts with
multi_cluster_app_id
(list(string)) - provider
Id String - The Global DNS provider ID to use (string)
- ttl Number
- TTL in seconds for DNS record. Default:
300
(int)
Import
Global DNS Entry can be imported using the Rancher Global DNS ID
$ pulumi import rancher2:index/globalDns:GlobalDns foo <global_dns_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.