Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
DNS network mappings associate CIDR ranges with network tags for private DNS resolution and traffic-based routing.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleDnsNetworkMapping = gcore.getDnsNetworkMapping({
id: 0,
});
import pulumi
import pulumi_gcore as gcore
example_dns_network_mapping = gcore.get_dns_network_mapping(id=0)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.LookupDnsNetworkMapping(ctx, &gcore.LookupDnsNetworkMappingArgs{
Id: 0,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleDnsNetworkMapping = Gcore.GetDnsNetworkMapping.Invoke(new()
{
Id = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetDnsNetworkMappingArgs;
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 exampleDnsNetworkMapping = GcoreFunctions.getDnsNetworkMapping(GetDnsNetworkMappingArgs.builder()
.id(0)
.build());
}
}
variables:
exampleDnsNetworkMapping:
fn::invoke:
function: gcore:getDnsNetworkMapping
arguments:
id: 0
Using getDnsNetworkMapping
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 getDnsNetworkMapping(args: GetDnsNetworkMappingArgs, opts?: InvokeOptions): Promise<GetDnsNetworkMappingResult>
function getDnsNetworkMappingOutput(args: GetDnsNetworkMappingOutputArgs, opts?: InvokeOptions): Output<GetDnsNetworkMappingResult>def get_dns_network_mapping(id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsNetworkMappingResult
def get_dns_network_mapping_output(id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDnsNetworkMappingResult]func LookupDnsNetworkMapping(ctx *Context, args *LookupDnsNetworkMappingArgs, opts ...InvokeOption) (*LookupDnsNetworkMappingResult, error)
func LookupDnsNetworkMappingOutput(ctx *Context, args *LookupDnsNetworkMappingOutputArgs, opts ...InvokeOption) LookupDnsNetworkMappingResultOutput> Note: This function is named LookupDnsNetworkMapping in the Go SDK.
public static class GetDnsNetworkMapping
{
public static Task<GetDnsNetworkMappingResult> InvokeAsync(GetDnsNetworkMappingArgs args, InvokeOptions? opts = null)
public static Output<GetDnsNetworkMappingResult> Invoke(GetDnsNetworkMappingInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDnsNetworkMappingResult> getDnsNetworkMapping(GetDnsNetworkMappingArgs args, InvokeOptions options)
public static Output<GetDnsNetworkMappingResult> getDnsNetworkMapping(GetDnsNetworkMappingArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getDnsNetworkMapping:getDnsNetworkMapping
arguments:
# arguments dictionaryThe following arguments are supported:
- Id double
- The ID of this resource.
- Id float64
- The ID of this resource.
- id Double
- The ID of this resource.
- id number
- The ID of this resource.
- id float
- The ID of this resource.
- id Number
- The ID of this resource.
getDnsNetworkMapping Result
The following output properties are available:
- Id double
- The ID of this resource.
- Mappings
List<Get
Dns Network Mapping Mapping> - Name string
- Id float64
- The ID of this resource.
- Mappings
[]Get
Dns Network Mapping Mapping - Name string
- id Double
- The ID of this resource.
- mappings
List<Get
Dns Network Mapping Mapping> - name String
- id number
- The ID of this resource.
- mappings
Get
Dns Network Mapping Mapping[] - name string
- id float
- The ID of this resource.
- mappings
Sequence[Get
Dns Network Mapping Mapping] - name str
- id Number
- The ID of this resource.
- mappings List<Property Map>
- name String
Supporting Types
GetDnsNetworkMappingMapping
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
