ibm 1.80.0-beta0 published on Tuesday, Jun 24, 2025 by ibm-cloud
ibm.getDnsSecondary
Explore with Pulumi AI
Retrieve information of an existing DNS secondary zone as a read-only data source. For more information, about DNS secondary resource, see managing secondary DNS zones.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
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.GetDnsSecondaryArgs;
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 secondaryId = IbmFunctions.getDnsSecondary(GetDnsSecondaryArgs.builder()
.name("test-secondary.com")
.build());
}
}
variables:
secondaryId:
fn::invoke:
function: ibm:getDnsSecondary
arguments:
name: test-secondary.com
Using getDnsSecondary
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDnsSecondary(args: GetDnsSecondaryArgs, opts?: InvokeOptions): Promise<GetDnsSecondaryResult>
function getDnsSecondaryOutput(args: GetDnsSecondaryOutputArgs, opts?: InvokeOptions): Output<GetDnsSecondaryResult>
def get_dns_secondary(id: Optional[str] = None,
zone_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsSecondaryResult
def get_dns_secondary_output(id: Optional[pulumi.Input[str]] = None,
zone_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDnsSecondaryResult]
func LookupDnsSecondary(ctx *Context, args *LookupDnsSecondaryArgs, opts ...InvokeOption) (*LookupDnsSecondaryResult, error)
func LookupDnsSecondaryOutput(ctx *Context, args *LookupDnsSecondaryOutputArgs, opts ...InvokeOption) LookupDnsSecondaryResultOutput
> Note: This function is named LookupDnsSecondary
in the Go SDK.
public static class GetDnsSecondary
{
public static Task<GetDnsSecondaryResult> InvokeAsync(GetDnsSecondaryArgs args, InvokeOptions? opts = null)
public static Output<GetDnsSecondaryResult> Invoke(GetDnsSecondaryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDnsSecondaryResult> getDnsSecondary(GetDnsSecondaryArgs args, InvokeOptions options)
public static Output<GetDnsSecondaryResult> getDnsSecondary(GetDnsSecondaryArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDnsSecondary:getDnsSecondary
arguments:
# arguments dictionary
The following arguments are supported:
getDnsSecondary Result
The following output properties are available:
- Id string
- (String) The unique identifier of the secondary.
- Master
Ip stringAddress - (String) The IP address of the master name server where a secondary DNS zone is transferred from.
- Status
Id double - (String) The status of a secondary DNS record.
- Status
Text string - (String) The textual representation of a secondary DNS zone's status.
- Transfer
Frequency double - (Integer) Signifies how often a secondary DNS zone transferred in minutes.
- Zone
Name string
- Id string
- (String) The unique identifier of the secondary.
- Master
Ip stringAddress - (String) The IP address of the master name server where a secondary DNS zone is transferred from.
- Status
Id float64 - (String) The status of a secondary DNS record.
- Status
Text string - (String) The textual representation of a secondary DNS zone's status.
- Transfer
Frequency float64 - (Integer) Signifies how often a secondary DNS zone transferred in minutes.
- Zone
Name string
- id String
- (String) The unique identifier of the secondary.
- master
Ip StringAddress - (String) The IP address of the master name server where a secondary DNS zone is transferred from.
- status
Id Double - (String) The status of a secondary DNS record.
- status
Text String - (String) The textual representation of a secondary DNS zone's status.
- transfer
Frequency Double - (Integer) Signifies how often a secondary DNS zone transferred in minutes.
- zone
Name String
- id string
- (String) The unique identifier of the secondary.
- master
Ip stringAddress - (String) The IP address of the master name server where a secondary DNS zone is transferred from.
- status
Id number - (String) The status of a secondary DNS record.
- status
Text string - (String) The textual representation of a secondary DNS zone's status.
- transfer
Frequency number - (Integer) Signifies how often a secondary DNS zone transferred in minutes.
- zone
Name string
- id str
- (String) The unique identifier of the secondary.
- master_
ip_ straddress - (String) The IP address of the master name server where a secondary DNS zone is transferred from.
- status_
id float - (String) The status of a secondary DNS record.
- status_
text str - (String) The textual representation of a secondary DNS zone's status.
- transfer_
frequency float - (Integer) Signifies how often a secondary DNS zone transferred in minutes.
- zone_
name str
- id String
- (String) The unique identifier of the secondary.
- master
Ip StringAddress - (String) The IP address of the master name server where a secondary DNS zone is transferred from.
- status
Id Number - (String) The status of a secondary DNS record.
- status
Text String - (String) The textual representation of a secondary DNS zone's status.
- transfer
Frequency Number - (Integer) Signifies how often a secondary DNS zone transferred in minutes.
- zone
Name String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.