Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getGlobalDnsProvider

Provides a Rancher V2 Global DNS Provider data source. Use this data source to retrieve information about a Rancher v2 global DNS provider

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Rancher2.GetGlobalDnsProvider.InvokeAsync(new Rancher2.GetGlobalDnsProviderArgs
        {
            Name = "foo",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-rancher2/sdk/v2/go/rancher2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := rancher2.LookupGlobalDnsProvider(ctx, &rancher2.LookupGlobalDnsProviderArgs{
            Name: "foo",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_rancher2 as rancher2

foo = rancher2.get_global_dns_provider(name="foo")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

const foo = pulumi.output(rancher2.getGlobalDnsProvider({
    name: "foo",
}, { async: true }));

Using getGlobalDnsProvider

function getGlobalDnsProvider(args: GetGlobalDnsProviderArgs, opts?: InvokeOptions): Promise<GetGlobalDnsProviderResult>
def get_global_dns_provider(name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetGlobalDnsProviderResult
func LookupGlobalDnsProvider(ctx *Context, args *LookupGlobalDnsProviderArgs, opts ...InvokeOption) (*LookupGlobalDnsProviderResult, error)

Note: This function is named LookupGlobalDnsProvider in the Go SDK.

public static class GetGlobalDnsProvider {
    public static Task<GetGlobalDnsProviderResult> InvokeAsync(GetGlobalDnsProviderArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the global DNS provider (string)

Name string

The name of the global DNS provider (string)

name string

The name of the global DNS provider (string)

name str

The name of the global DNS provider (string)

getGlobalDnsProvider Result

The following output properties are available:

AlidnsConfig GetGlobalDnsProviderAlidnsConfig
Annotations Dictionary<string, object>

(Computed) Annotations of the resource (map)

CloudflareConfig GetGlobalDnsProviderCloudflareConfig
DnsProvider string
Id string

The provider-assigned unique ID for this managed resource.

Labels Dictionary<string, object>

(Computed) Labels of the resource (map)

Name string

(Computed) The name of the global DNS provider (string)

RootDomain string
Route53Config GetGlobalDnsProviderRoute53Config
AlidnsConfig GetGlobalDnsProviderAlidnsConfig
Annotations map[string]interface{}

(Computed) Annotations of the resource (map)

CloudflareConfig GetGlobalDnsProviderCloudflareConfig
DnsProvider string
Id string

The provider-assigned unique ID for this managed resource.

Labels map[string]interface{}

(Computed) Labels of the resource (map)

Name string

(Computed) The name of the global DNS provider (string)

RootDomain string
Route53Config GetGlobalDnsProviderRoute53Config
alidnsConfig GetGlobalDnsProviderAlidnsConfig
annotations {[key: string]: any}

(Computed) Annotations of the resource (map)

cloudflareConfig GetGlobalDnsProviderCloudflareConfig
dnsProvider string
id string

The provider-assigned unique ID for this managed resource.

labels {[key: string]: any}

(Computed) Labels of the resource (map)

name string

(Computed) The name of the global DNS provider (string)

rootDomain string
route53Config GetGlobalDnsProviderRoute53Config
alidns_config GetGlobalDnsProviderAlidnsConfig
annotations Mapping[str, Any]

(Computed) Annotations of the resource (map)

cloudflare_config GetGlobalDnsProviderCloudflareConfig
dns_provider str
id str

The provider-assigned unique ID for this managed resource.

labels Mapping[str, Any]

(Computed) Labels of the resource (map)

name str

(Computed) The name of the global DNS provider (string)

root_domain str
route53_config GetGlobalDnsProviderRoute53Config

Supporting Types

GetGlobalDnsProviderAlidnsConfig

AccessKey string
SecretKey string
AccessKey string
SecretKey string
accessKey string
secretKey string

GetGlobalDnsProviderCloudflareConfig

ApiEmail string
ApiKey string
ProxySetting bool
ApiEmail string
ApiKey string
ProxySetting bool
apiEmail string
apiKey string
proxySetting boolean

GetGlobalDnsProviderRoute53Config

AccessKey string
SecretKey string
CredentialsPath string
Region string
RoleArn string
ZoneType string
AccessKey string
SecretKey string
CredentialsPath string
Region string
RoleArn string
ZoneType string
accessKey string
secretKey string
credentialsPath string
region string
roleArn string
zoneType string

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.