ibm.DnsCustomResolverSecondaryZone
Explore with Pulumi AI
The DNS custom resolver secondary zone resource allows users to request and manage secondary zones for a given custom resolver. By creating and enabling a secondary zone resource for a custom resolver, DNS records for a given DNS zone will be transferred from a user provided primary DNS server (on premise) to a private DNS custom resolver hosted on an IBM Cloud VPC. This framework will improve the availability, speed, and security of DNS queries for a given DNS zone.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const rg = ibm.getResourceGroup({
isDefault: true,
});
// create a VPC for the subnets
const test_pdns_cr_vpc = new ibm.IsVpc("test-pdns-cr-vpc", {resourceGroup: rg.then(rg => rg.id)}, {
dependsOn: [rg],
});
// create subnets for the custom resolver locations
const test_pdns_cr_subnet1 = new ibm.IsSubnet("test-pdns-cr-subnet1", {
vpc: test_pdns_cr_vpc.isVpcId,
zone: "us-south-1",
ipv4CidrBlock: "10.240.0.0/24",
resourceGroup: rg.then(rg => rg.id),
});
const test_pdns_cr_subnet2 = new ibm.IsSubnet("test-pdns-cr-subnet2", {
vpc: test_pdns_cr_vpc.isVpcId,
zone: "us-south-2",
ipv4CidrBlock: "10.240.64.0/24",
resourceGroup: rg.then(rg => rg.id),
});
// create a DNS instance
const test_pdns_cr_instance = new ibm.ResourceInstance("test-pdns-cr-instance", {
resourceGroupId: rg.then(rg => rg.id),
location: "global",
service: "dns-svcs",
plan: "standard-dns",
});
// create a custom resolver
const testDnsCustomResolver = new ibm.DnsCustomResolver("testDnsCustomResolver", {
instanceId: test_pdns_cr_instance.guid,
description: "new test CR - TF",
enabled: true,
locations: [
{
subnetCrn: test_pdns_cr_subnet1.crn,
enabled: true,
},
{
subnetCrn: test_pdns_cr_subnet2.crn,
enabled: true,
},
],
});
const testDnsCustomResolverSecondaryZone = new ibm.DnsCustomResolverSecondaryZone("testDnsCustomResolverSecondaryZone", {
instanceId: test_pdns_cr_instance.guid,
resolverId: testDnsCustomResolver.customResolverId,
zone: "example-zone.com",
enabled: true,
transferFroms: ["10.0.0.8"],
});
import pulumi
import pulumi_ibm as ibm
rg = ibm.get_resource_group(is_default=True)
# create a VPC for the subnets
test_pdns_cr_vpc = ibm.IsVpc("test-pdns-cr-vpc", resource_group=rg.id,
opts = pulumi.ResourceOptions(depends_on=[rg]))
# create subnets for the custom resolver locations
test_pdns_cr_subnet1 = ibm.IsSubnet("test-pdns-cr-subnet1",
vpc=test_pdns_cr_vpc.is_vpc_id,
zone="us-south-1",
ipv4_cidr_block="10.240.0.0/24",
resource_group=rg.id)
test_pdns_cr_subnet2 = ibm.IsSubnet("test-pdns-cr-subnet2",
vpc=test_pdns_cr_vpc.is_vpc_id,
zone="us-south-2",
ipv4_cidr_block="10.240.64.0/24",
resource_group=rg.id)
# create a DNS instance
test_pdns_cr_instance = ibm.ResourceInstance("test-pdns-cr-instance",
resource_group_id=rg.id,
location="global",
service="dns-svcs",
plan="standard-dns")
# create a custom resolver
test_dns_custom_resolver = ibm.DnsCustomResolver("testDnsCustomResolver",
instance_id=test_pdns_cr_instance.guid,
description="new test CR - TF",
enabled=True,
locations=[
{
"subnet_crn": test_pdns_cr_subnet1.crn,
"enabled": True,
},
{
"subnet_crn": test_pdns_cr_subnet2.crn,
"enabled": True,
},
])
test_dns_custom_resolver_secondary_zone = ibm.DnsCustomResolverSecondaryZone("testDnsCustomResolverSecondaryZone",
instance_id=test_pdns_cr_instance.guid,
resolver_id=test_dns_custom_resolver.custom_resolver_id,
zone="example-zone.com",
enabled=True,
transfer_froms=["10.0.0.8"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
rg, err := ibm.LookupResourceGroup(ctx, &ibm.LookupResourceGroupArgs{
IsDefault: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
// create a VPC for the subnets
test_pdns_cr_vpc, err := ibm.NewIsVpc(ctx, "test-pdns-cr-vpc", &ibm.IsVpcArgs{
ResourceGroup: pulumi.String(rg.Id),
}, pulumi.DependsOn([]pulumi.Resource{
rg,
}))
if err != nil {
return err
}
// create subnets for the custom resolver locations
test_pdns_cr_subnet1, err := ibm.NewIsSubnet(ctx, "test-pdns-cr-subnet1", &ibm.IsSubnetArgs{
Vpc: test_pdns_cr_vpc.IsVpcId,
Zone: pulumi.String("us-south-1"),
Ipv4CidrBlock: pulumi.String("10.240.0.0/24"),
ResourceGroup: pulumi.String(rg.Id),
})
if err != nil {
return err
}
test_pdns_cr_subnet2, err := ibm.NewIsSubnet(ctx, "test-pdns-cr-subnet2", &ibm.IsSubnetArgs{
Vpc: test_pdns_cr_vpc.IsVpcId,
Zone: pulumi.String("us-south-2"),
Ipv4CidrBlock: pulumi.String("10.240.64.0/24"),
ResourceGroup: pulumi.String(rg.Id),
})
if err != nil {
return err
}
// create a DNS instance
test_pdns_cr_instance, err := ibm.NewResourceInstance(ctx, "test-pdns-cr-instance", &ibm.ResourceInstanceArgs{
ResourceGroupId: pulumi.String(rg.Id),
Location: pulumi.String("global"),
Service: pulumi.String("dns-svcs"),
Plan: pulumi.String("standard-dns"),
})
if err != nil {
return err
}
// create a custom resolver
testDnsCustomResolver, err := ibm.NewDnsCustomResolver(ctx, "testDnsCustomResolver", &ibm.DnsCustomResolverArgs{
InstanceId: test_pdns_cr_instance.Guid,
Description: pulumi.String("new test CR - TF"),
Enabled: pulumi.Bool(true),
Locations: ibm.DnsCustomResolverLocationArray{
&ibm.DnsCustomResolverLocationArgs{
SubnetCrn: test_pdns_cr_subnet1.Crn,
Enabled: pulumi.Bool(true),
},
&ibm.DnsCustomResolverLocationArgs{
SubnetCrn: test_pdns_cr_subnet2.Crn,
Enabled: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
_, err = ibm.NewDnsCustomResolverSecondaryZone(ctx, "testDnsCustomResolverSecondaryZone", &ibm.DnsCustomResolverSecondaryZoneArgs{
InstanceId: test_pdns_cr_instance.Guid,
ResolverId: testDnsCustomResolver.CustomResolverId,
Zone: pulumi.String("example-zone.com"),
Enabled: pulumi.Bool(true),
TransferFroms: pulumi.StringArray{
pulumi.String("10.0.0.8"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var rg = Ibm.GetResourceGroup.Invoke(new()
{
IsDefault = true,
});
// create a VPC for the subnets
var test_pdns_cr_vpc = new Ibm.IsVpc("test-pdns-cr-vpc", new()
{
ResourceGroup = rg.Apply(getResourceGroupResult => getResourceGroupResult.Id),
}, new CustomResourceOptions
{
DependsOn =
{
rg,
},
});
// create subnets for the custom resolver locations
var test_pdns_cr_subnet1 = new Ibm.IsSubnet("test-pdns-cr-subnet1", new()
{
Vpc = test_pdns_cr_vpc.IsVpcId,
Zone = "us-south-1",
Ipv4CidrBlock = "10.240.0.0/24",
ResourceGroup = rg.Apply(getResourceGroupResult => getResourceGroupResult.Id),
});
var test_pdns_cr_subnet2 = new Ibm.IsSubnet("test-pdns-cr-subnet2", new()
{
Vpc = test_pdns_cr_vpc.IsVpcId,
Zone = "us-south-2",
Ipv4CidrBlock = "10.240.64.0/24",
ResourceGroup = rg.Apply(getResourceGroupResult => getResourceGroupResult.Id),
});
// create a DNS instance
var test_pdns_cr_instance = new Ibm.ResourceInstance("test-pdns-cr-instance", new()
{
ResourceGroupId = rg.Apply(getResourceGroupResult => getResourceGroupResult.Id),
Location = "global",
Service = "dns-svcs",
Plan = "standard-dns",
});
// create a custom resolver
var testDnsCustomResolver = new Ibm.DnsCustomResolver("testDnsCustomResolver", new()
{
InstanceId = test_pdns_cr_instance.Guid,
Description = "new test CR - TF",
Enabled = true,
Locations = new[]
{
new Ibm.Inputs.DnsCustomResolverLocationArgs
{
SubnetCrn = test_pdns_cr_subnet1.Crn,
Enabled = true,
},
new Ibm.Inputs.DnsCustomResolverLocationArgs
{
SubnetCrn = test_pdns_cr_subnet2.Crn,
Enabled = true,
},
},
});
var testDnsCustomResolverSecondaryZone = new Ibm.DnsCustomResolverSecondaryZone("testDnsCustomResolverSecondaryZone", new()
{
InstanceId = test_pdns_cr_instance.Guid,
ResolverId = testDnsCustomResolver.CustomResolverId,
Zone = "example-zone.com",
Enabled = true,
TransferFroms = new[]
{
"10.0.0.8",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetResourceGroupArgs;
import com.pulumi.ibm.IsVpc;
import com.pulumi.ibm.IsVpcArgs;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.ResourceInstance;
import com.pulumi.ibm.ResourceInstanceArgs;
import com.pulumi.ibm.DnsCustomResolver;
import com.pulumi.ibm.DnsCustomResolverArgs;
import com.pulumi.ibm.inputs.DnsCustomResolverLocationArgs;
import com.pulumi.ibm.DnsCustomResolverSecondaryZone;
import com.pulumi.ibm.DnsCustomResolverSecondaryZoneArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
final var rg = IbmFunctions.getResourceGroup(GetResourceGroupArgs.builder()
.isDefault(true)
.build());
// create a VPC for the subnets
var test_pdns_cr_vpc = new IsVpc("test-pdns-cr-vpc", IsVpcArgs.builder()
.resourceGroup(rg.applyValue(getResourceGroupResult -> getResourceGroupResult.id()))
.build(), CustomResourceOptions.builder()
.dependsOn(rg.applyValue(getResourceGroupResult -> getResourceGroupResult))
.build());
// create subnets for the custom resolver locations
var test_pdns_cr_subnet1 = new IsSubnet("test-pdns-cr-subnet1", IsSubnetArgs.builder()
.vpc(test_pdns_cr_vpc.isVpcId())
.zone("us-south-1")
.ipv4CidrBlock("10.240.0.0/24")
.resourceGroup(rg.applyValue(getResourceGroupResult -> getResourceGroupResult.id()))
.build());
var test_pdns_cr_subnet2 = new IsSubnet("test-pdns-cr-subnet2", IsSubnetArgs.builder()
.vpc(test_pdns_cr_vpc.isVpcId())
.zone("us-south-2")
.ipv4CidrBlock("10.240.64.0/24")
.resourceGroup(rg.applyValue(getResourceGroupResult -> getResourceGroupResult.id()))
.build());
// create a DNS instance
var test_pdns_cr_instance = new ResourceInstance("test-pdns-cr-instance", ResourceInstanceArgs.builder()
.resourceGroupId(rg.applyValue(getResourceGroupResult -> getResourceGroupResult.id()))
.location("global")
.service("dns-svcs")
.plan("standard-dns")
.build());
// create a custom resolver
var testDnsCustomResolver = new DnsCustomResolver("testDnsCustomResolver", DnsCustomResolverArgs.builder()
.instanceId(test_pdns_cr_instance.guid())
.description("new test CR - TF")
.enabled(true)
.locations(
DnsCustomResolverLocationArgs.builder()
.subnetCrn(test_pdns_cr_subnet1.crn())
.enabled(true)
.build(),
DnsCustomResolverLocationArgs.builder()
.subnetCrn(test_pdns_cr_subnet2.crn())
.enabled(true)
.build())
.build());
var testDnsCustomResolverSecondaryZone = new DnsCustomResolverSecondaryZone("testDnsCustomResolverSecondaryZone", DnsCustomResolverSecondaryZoneArgs.builder()
.instanceId(test_pdns_cr_instance.guid())
.resolverId(testDnsCustomResolver.customResolverId())
.zone("example-zone.com")
.enabled(true)
.transferFroms("10.0.0.8")
.build());
}
}
resources:
# create a VPC for the subnets
test-pdns-cr-vpc:
type: ibm:IsVpc
properties:
resourceGroup: ${rg.id}
options:
dependsOn:
- ${rg}
# create subnets for the custom resolver locations
test-pdns-cr-subnet1:
type: ibm:IsSubnet
properties:
vpc: ${["test-pdns-cr-vpc"].isVpcId}
zone: us-south-1
ipv4CidrBlock: 10.240.0.0/24
resourceGroup: ${rg.id}
test-pdns-cr-subnet2:
type: ibm:IsSubnet
properties:
vpc: ${["test-pdns-cr-vpc"].isVpcId}
zone: us-south-2
ipv4CidrBlock: 10.240.64.0/24
resourceGroup: ${rg.id}
# create a DNS instance
test-pdns-cr-instance:
type: ibm:ResourceInstance
properties:
resourceGroupId: ${rg.id}
location: global
service: dns-svcs
plan: standard-dns
# create a custom resolver
testDnsCustomResolver:
type: ibm:DnsCustomResolver
properties:
instanceId: ${["test-pdns-cr-instance"].guid}
description: new test CR - TF
enabled: true
locations:
- subnetCrn: ${["test-pdns-cr-subnet1"].crn}
enabled: true
- subnetCrn: ${["test-pdns-cr-subnet2"].crn}
enabled: true
testDnsCustomResolverSecondaryZone:
type: ibm:DnsCustomResolverSecondaryZone
properties:
instanceId: ${["test-pdns-cr-instance"].guid}
resolverId: ${testDnsCustomResolver.customResolverId}
zone: example-zone.com
enabled: true
transferFroms:
- 10.0.0.8
variables:
rg:
fn::invoke:
function: ibm:getResourceGroup
arguments:
isDefault: true
Create DnsCustomResolverSecondaryZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsCustomResolverSecondaryZone(name: string, args: DnsCustomResolverSecondaryZoneArgs, opts?: CustomResourceOptions);
@overload
def DnsCustomResolverSecondaryZone(resource_name: str,
args: DnsCustomResolverSecondaryZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnsCustomResolverSecondaryZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
instance_id: Optional[str] = None,
resolver_id: Optional[str] = None,
transfer_froms: Optional[Sequence[str]] = None,
zone: Optional[str] = None,
description: Optional[str] = None,
dns_custom_resolver_secondary_zone_id: Optional[str] = None)
func NewDnsCustomResolverSecondaryZone(ctx *Context, name string, args DnsCustomResolverSecondaryZoneArgs, opts ...ResourceOption) (*DnsCustomResolverSecondaryZone, error)
public DnsCustomResolverSecondaryZone(string name, DnsCustomResolverSecondaryZoneArgs args, CustomResourceOptions? opts = null)
public DnsCustomResolverSecondaryZone(String name, DnsCustomResolverSecondaryZoneArgs args)
public DnsCustomResolverSecondaryZone(String name, DnsCustomResolverSecondaryZoneArgs args, CustomResourceOptions options)
type: ibm:DnsCustomResolverSecondaryZone
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 DnsCustomResolverSecondaryZoneArgs
- 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 DnsCustomResolverSecondaryZoneArgs
- 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 DnsCustomResolverSecondaryZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsCustomResolverSecondaryZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsCustomResolverSecondaryZoneArgs
- 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 dnsCustomResolverSecondaryZoneResource = new Ibm.DnsCustomResolverSecondaryZone("dnsCustomResolverSecondaryZoneResource", new()
{
Enabled = false,
InstanceId = "string",
ResolverId = "string",
TransferFroms = new[]
{
"string",
},
Zone = "string",
Description = "string",
DnsCustomResolverSecondaryZoneId = "string",
});
example, err := ibm.NewDnsCustomResolverSecondaryZone(ctx, "dnsCustomResolverSecondaryZoneResource", &ibm.DnsCustomResolverSecondaryZoneArgs{
Enabled: pulumi.Bool(false),
InstanceId: pulumi.String("string"),
ResolverId: pulumi.String("string"),
TransferFroms: pulumi.StringArray{
pulumi.String("string"),
},
Zone: pulumi.String("string"),
Description: pulumi.String("string"),
DnsCustomResolverSecondaryZoneId: pulumi.String("string"),
})
var dnsCustomResolverSecondaryZoneResource = new DnsCustomResolverSecondaryZone("dnsCustomResolverSecondaryZoneResource", DnsCustomResolverSecondaryZoneArgs.builder()
.enabled(false)
.instanceId("string")
.resolverId("string")
.transferFroms("string")
.zone("string")
.description("string")
.dnsCustomResolverSecondaryZoneId("string")
.build());
dns_custom_resolver_secondary_zone_resource = ibm.DnsCustomResolverSecondaryZone("dnsCustomResolverSecondaryZoneResource",
enabled=False,
instance_id="string",
resolver_id="string",
transfer_froms=["string"],
zone="string",
description="string",
dns_custom_resolver_secondary_zone_id="string")
const dnsCustomResolverSecondaryZoneResource = new ibm.DnsCustomResolverSecondaryZone("dnsCustomResolverSecondaryZoneResource", {
enabled: false,
instanceId: "string",
resolverId: "string",
transferFroms: ["string"],
zone: "string",
description: "string",
dnsCustomResolverSecondaryZoneId: "string",
});
type: ibm:DnsCustomResolverSecondaryZone
properties:
description: string
dnsCustomResolverSecondaryZoneId: string
enabled: false
instanceId: string
resolverId: string
transferFroms:
- string
zone: string
DnsCustomResolverSecondaryZone 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 DnsCustomResolverSecondaryZone resource accepts the following input properties:
- Enabled bool
- To enable or disable a secondary zone.
- Instance
Id string - The unique identifier of a service instance.
- Resolver
Id string - The GUID of the custom resolver.
- Transfer
Froms List<string> - The addresses of DNS servers where the secondary zone data is transferred from.
- Zone string
- The name of the zone.
- Description string
- Descriptive text of the secondary zone.
- Dns
Custom stringResolver Secondary Zone Id
- Enabled bool
- To enable or disable a secondary zone.
- Instance
Id string - The unique identifier of a service instance.
- Resolver
Id string - The GUID of the custom resolver.
- Transfer
Froms []string - The addresses of DNS servers where the secondary zone data is transferred from.
- Zone string
- The name of the zone.
- Description string
- Descriptive text of the secondary zone.
- Dns
Custom stringResolver Secondary Zone Id
- enabled Boolean
- To enable or disable a secondary zone.
- instance
Id String - The unique identifier of a service instance.
- resolver
Id String - The GUID of the custom resolver.
- transfer
Froms List<String> - The addresses of DNS servers where the secondary zone data is transferred from.
- zone String
- The name of the zone.
- description String
- Descriptive text of the secondary zone.
- dns
Custom StringResolver Secondary Zone Id
- enabled boolean
- To enable or disable a secondary zone.
- instance
Id string - The unique identifier of a service instance.
- resolver
Id string - The GUID of the custom resolver.
- transfer
Froms string[] - The addresses of DNS servers where the secondary zone data is transferred from.
- zone string
- The name of the zone.
- description string
- Descriptive text of the secondary zone.
- dns
Custom stringResolver Secondary Zone Id
- enabled bool
- To enable or disable a secondary zone.
- instance_
id str - The unique identifier of a service instance.
- resolver_
id str - The GUID of the custom resolver.
- transfer_
froms Sequence[str] - The addresses of DNS servers where the secondary zone data is transferred from.
- zone str
- The name of the zone.
- description str
- Descriptive text of the secondary zone.
- dns_
custom_ strresolver_ secondary_ zone_ id
- enabled Boolean
- To enable or disable a secondary zone.
- instance
Id String - The unique identifier of a service instance.
- resolver
Id String - The GUID of the custom resolver.
- transfer
Froms List<String> - The addresses of DNS servers where the secondary zone data is transferred from.
- zone String
- The name of the zone.
- description String
- Descriptive text of the secondary zone.
- dns
Custom StringResolver Secondary Zone Id
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsCustomResolverSecondaryZone resource produces the following output properties:
- Created
On string - (Timestamp) The time (created On) of the Secondary Zone.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - (Timestamp) The time (modified On) of the Secondary Zone.
- Secondary
Zone stringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- Created
On string - (Timestamp) The time (created On) of the Secondary Zone.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - (Timestamp) The time (modified On) of the Secondary Zone.
- Secondary
Zone stringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- created
On String - (Timestamp) The time (created On) of the Secondary Zone.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - (Timestamp) The time (modified On) of the Secondary Zone.
- secondary
Zone StringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- created
On string - (Timestamp) The time (created On) of the Secondary Zone.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
On string - (Timestamp) The time (modified On) of the Secondary Zone.
- secondary
Zone stringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- created_
on str - (Timestamp) The time (created On) of the Secondary Zone.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
on str - (Timestamp) The time (modified On) of the Secondary Zone.
- secondary_
zone_ strid - (String) The unique ID of the DNS Services custom resolver secondary zone.
- created
On String - (Timestamp) The time (created On) of the Secondary Zone.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - (Timestamp) The time (modified On) of the Secondary Zone.
- secondary
Zone StringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
Look up Existing DnsCustomResolverSecondaryZone Resource
Get an existing DnsCustomResolverSecondaryZone 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?: DnsCustomResolverSecondaryZoneState, opts?: CustomResourceOptions): DnsCustomResolverSecondaryZone
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_on: Optional[str] = None,
description: Optional[str] = None,
dns_custom_resolver_secondary_zone_id: Optional[str] = None,
enabled: Optional[bool] = None,
instance_id: Optional[str] = None,
modified_on: Optional[str] = None,
resolver_id: Optional[str] = None,
secondary_zone_id: Optional[str] = None,
transfer_froms: Optional[Sequence[str]] = None,
zone: Optional[str] = None) -> DnsCustomResolverSecondaryZone
func GetDnsCustomResolverSecondaryZone(ctx *Context, name string, id IDInput, state *DnsCustomResolverSecondaryZoneState, opts ...ResourceOption) (*DnsCustomResolverSecondaryZone, error)
public static DnsCustomResolverSecondaryZone Get(string name, Input<string> id, DnsCustomResolverSecondaryZoneState? state, CustomResourceOptions? opts = null)
public static DnsCustomResolverSecondaryZone get(String name, Output<String> id, DnsCustomResolverSecondaryZoneState state, CustomResourceOptions options)
resources: _: type: ibm:DnsCustomResolverSecondaryZone get: id: ${id}
- 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.
- Created
On string - (Timestamp) The time (created On) of the Secondary Zone.
- Description string
- Descriptive text of the secondary zone.
- Dns
Custom stringResolver Secondary Zone Id - Enabled bool
- To enable or disable a secondary zone.
- Instance
Id string - The unique identifier of a service instance.
- Modified
On string - (Timestamp) The time (modified On) of the Secondary Zone.
- Resolver
Id string - The GUID of the custom resolver.
- Secondary
Zone stringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- Transfer
Froms List<string> - The addresses of DNS servers where the secondary zone data is transferred from.
- Zone string
- The name of the zone.
- Created
On string - (Timestamp) The time (created On) of the Secondary Zone.
- Description string
- Descriptive text of the secondary zone.
- Dns
Custom stringResolver Secondary Zone Id - Enabled bool
- To enable or disable a secondary zone.
- Instance
Id string - The unique identifier of a service instance.
- Modified
On string - (Timestamp) The time (modified On) of the Secondary Zone.
- Resolver
Id string - The GUID of the custom resolver.
- Secondary
Zone stringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- Transfer
Froms []string - The addresses of DNS servers where the secondary zone data is transferred from.
- Zone string
- The name of the zone.
- created
On String - (Timestamp) The time (created On) of the Secondary Zone.
- description String
- Descriptive text of the secondary zone.
- dns
Custom StringResolver Secondary Zone Id - enabled Boolean
- To enable or disable a secondary zone.
- instance
Id String - The unique identifier of a service instance.
- modified
On String - (Timestamp) The time (modified On) of the Secondary Zone.
- resolver
Id String - The GUID of the custom resolver.
- secondary
Zone StringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- transfer
Froms List<String> - The addresses of DNS servers where the secondary zone data is transferred from.
- zone String
- The name of the zone.
- created
On string - (Timestamp) The time (created On) of the Secondary Zone.
- description string
- Descriptive text of the secondary zone.
- dns
Custom stringResolver Secondary Zone Id - enabled boolean
- To enable or disable a secondary zone.
- instance
Id string - The unique identifier of a service instance.
- modified
On string - (Timestamp) The time (modified On) of the Secondary Zone.
- resolver
Id string - The GUID of the custom resolver.
- secondary
Zone stringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- transfer
Froms string[] - The addresses of DNS servers where the secondary zone data is transferred from.
- zone string
- The name of the zone.
- created_
on str - (Timestamp) The time (created On) of the Secondary Zone.
- description str
- Descriptive text of the secondary zone.
- dns_
custom_ strresolver_ secondary_ zone_ id - enabled bool
- To enable or disable a secondary zone.
- instance_
id str - The unique identifier of a service instance.
- modified_
on str - (Timestamp) The time (modified On) of the Secondary Zone.
- resolver_
id str - The GUID of the custom resolver.
- secondary_
zone_ strid - (String) The unique ID of the DNS Services custom resolver secondary zone.
- transfer_
froms Sequence[str] - The addresses of DNS servers where the secondary zone data is transferred from.
- zone str
- The name of the zone.
- created
On String - (Timestamp) The time (created On) of the Secondary Zone.
- description String
- Descriptive text of the secondary zone.
- dns
Custom StringResolver Secondary Zone Id - enabled Boolean
- To enable or disable a secondary zone.
- instance
Id String - The unique identifier of a service instance.
- modified
On String - (Timestamp) The time (modified On) of the Secondary Zone.
- resolver
Id String - The GUID of the custom resolver.
- secondary
Zone StringId - (String) The unique ID of the DNS Services custom resolver secondary zone.
- transfer
Froms List<String> - The addresses of DNS servers where the secondary zone data is transferred from.
- zone String
- The name of the zone.
Import
The ibm_dns_custom_resolver_secondary_zone
can be imported by using DNS Services instance ID, Custom Resolver ID, and Secondary Zone ID.
The id
property can be formed from instance_id
, custom_resolver_id
and secondary_zone_id
in the following format:
<instance_id>/<custom_resolver_id>/<secondary_zone_id>
Example
$ pulumi import ibm:index/dnsCustomResolverSecondaryZone:DnsCustomResolverSecondaryZone sample "d10e6956-377a-43fb-a5a6-54763a6b1dc2/63481bef-3759-4b5e-99df-73be7ba40a8a/bd2d4867-f606-45da-93b4-02dc69635d5e"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.