OpenStack v5.3.2 published on Friday, Jul 18, 2025 by Pulumi
openstack.dns.getZoneShareV2
Explore with Pulumi AI
Use this data source to get information about a DNS zone share.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const example = openstack.dns.getZoneShareV2({
zoneId: "00000000-0000-0000-0000-000000000000",
targetProjectId: "11111111-1111-1111-1111-111111111111",
projectId: "22222222-2222-2222-2222-222222222222",
});
import pulumi
import pulumi_openstack as openstack
example = openstack.dns.get_zone_share_v2(zone_id="00000000-0000-0000-0000-000000000000",
target_project_id="11111111-1111-1111-1111-111111111111",
project_id="22222222-2222-2222-2222-222222222222")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dns.LookupZoneShareV2(ctx, &dns.LookupZoneShareV2Args{
ZoneId: "00000000-0000-0000-0000-000000000000",
TargetProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
ProjectId: pulumi.StringRef("22222222-2222-2222-2222-222222222222"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var example = OpenStack.Dns.GetZoneShareV2.Invoke(new()
{
ZoneId = "00000000-0000-0000-0000-000000000000",
TargetProjectId = "11111111-1111-1111-1111-111111111111",
ProjectId = "22222222-2222-2222-2222-222222222222",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.dns.DnsFunctions;
import com.pulumi.openstack.dns.inputs.GetZoneShareV2Args;
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 example = DnsFunctions.getZoneShareV2(GetZoneShareV2Args.builder()
.zoneId("00000000-0000-0000-0000-000000000000")
.targetProjectId("11111111-1111-1111-1111-111111111111")
.projectId("22222222-2222-2222-2222-222222222222")
.build());
}
}
variables:
example:
fn::invoke:
function: openstack:dns:getZoneShareV2
arguments:
zoneId: 00000000-0000-0000-0000-000000000000
targetProjectId: 11111111-1111-1111-1111-111111111111
projectId: 22222222-2222-2222-2222-222222222222
Using getZoneShareV2
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 getZoneShareV2(args: GetZoneShareV2Args, opts?: InvokeOptions): Promise<GetZoneShareV2Result>
function getZoneShareV2Output(args: GetZoneShareV2OutputArgs, opts?: InvokeOptions): Output<GetZoneShareV2Result>
def get_zone_share_v2(all_projects: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
share_id: Optional[str] = None,
target_project_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZoneShareV2Result
def get_zone_share_v2_output(all_projects: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
share_id: Optional[pulumi.Input[str]] = None,
target_project_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZoneShareV2Result]
func LookupZoneShareV2(ctx *Context, args *LookupZoneShareV2Args, opts ...InvokeOption) (*LookupZoneShareV2Result, error)
func LookupZoneShareV2Output(ctx *Context, args *LookupZoneShareV2OutputArgs, opts ...InvokeOption) LookupZoneShareV2ResultOutput
> Note: This function is named LookupZoneShareV2
in the Go SDK.
public static class GetZoneShareV2
{
public static Task<GetZoneShareV2Result> InvokeAsync(GetZoneShareV2Args args, InvokeOptions? opts = null)
public static Output<GetZoneShareV2Result> Invoke(GetZoneShareV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZoneShareV2Result> getZoneShareV2(GetZoneShareV2Args args, InvokeOptions options)
public static Output<GetZoneShareV2Result> getZoneShareV2(GetZoneShareV2Args args, InvokeOptions options)
fn::invoke:
function: openstack:dns/getZoneShareV2:getZoneShareV2
arguments:
# arguments dictionary
The following arguments are supported:
- Zone
Id string - The ID of the DNS zone for which to get share.
- All
Projects string - If set to
true
, the data source will search across all projects. If set tofalse
, it will only search within the current project. Defaults tofalse
. - Project
Id string - The owner project ID. If omitted, it is derived from the zone share details.
- Region string
- The region in which to obtain the V2 DNS client. If
omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone share data source. - string
- The ID of the DNS zone share to retrieve. If provided, the data source returns only the share with this ID.
- Target
Project stringId - If provided, the data source returns the share with this target project ID.
- Zone
Id string - The ID of the DNS zone for which to get share.
- All
Projects string - If set to
true
, the data source will search across all projects. If set tofalse
, it will only search within the current project. Defaults tofalse
. - Project
Id string - The owner project ID. If omitted, it is derived from the zone share details.
- Region string
- The region in which to obtain the V2 DNS client. If
omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone share data source. - string
- The ID of the DNS zone share to retrieve. If provided, the data source returns only the share with this ID.
- Target
Project stringId - If provided, the data source returns the share with this target project ID.
- zone
Id String - The ID of the DNS zone for which to get share.
- all
Projects String - If set to
true
, the data source will search across all projects. If set tofalse
, it will only search within the current project. Defaults tofalse
. - project
Id String - The owner project ID. If omitted, it is derived from the zone share details.
- region String
- The region in which to obtain the V2 DNS client. If
omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone share data source. - String
- The ID of the DNS zone share to retrieve. If provided, the data source returns only the share with this ID.
- target
Project StringId - If provided, the data source returns the share with this target project ID.
- zone
Id string - The ID of the DNS zone for which to get share.
- all
Projects string - If set to
true
, the data source will search across all projects. If set tofalse
, it will only search within the current project. Defaults tofalse
. - project
Id string - The owner project ID. If omitted, it is derived from the zone share details.
- region string
- The region in which to obtain the V2 DNS client. If
omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone share data source. - string
- The ID of the DNS zone share to retrieve. If provided, the data source returns only the share with this ID.
- target
Project stringId - If provided, the data source returns the share with this target project ID.
- zone_
id str - The ID of the DNS zone for which to get share.
- all_
projects str - If set to
true
, the data source will search across all projects. If set tofalse
, it will only search within the current project. Defaults tofalse
. - project_
id str - The owner project ID. If omitted, it is derived from the zone share details.
- region str
- The region in which to obtain the V2 DNS client. If
omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone share data source. - str
- The ID of the DNS zone share to retrieve. If provided, the data source returns only the share with this ID.
- target_
project_ strid - If provided, the data source returns the share with this target project ID.
- zone
Id String - The ID of the DNS zone for which to get share.
- all
Projects String - If set to
true
, the data source will search across all projects. If set tofalse
, it will only search within the current project. Defaults tofalse
. - project
Id String - The owner project ID. If omitted, it is derived from the zone share details.
- region String
- The region in which to obtain the V2 DNS client. If
omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone share data source. - String
- The ID of the DNS zone share to retrieve. If provided, the data source returns only the share with this ID.
- target
Project StringId - If provided, the data source returns the share with this target project ID.
getZoneShareV2 Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- See Argument Reference above.
- string
- The ID of the zone share.
- Zone
Id string - See Argument Reference above.
- All
Projects string - See Argument Reference above.
- Project
Id string - See Argument Reference above.
- Target
Project stringId - See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- See Argument Reference above.
- string
- The ID of the zone share.
- Zone
Id string - See Argument Reference above.
- All
Projects string - See Argument Reference above.
- Project
Id string - See Argument Reference above.
- Target
Project stringId - See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- See Argument Reference above.
- String
- The ID of the zone share.
- zone
Id String - See Argument Reference above.
- all
Projects String - See Argument Reference above.
- project
Id String - See Argument Reference above.
- target
Project StringId - See Argument Reference above.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- See Argument Reference above.
- string
- The ID of the zone share.
- zone
Id string - See Argument Reference above.
- all
Projects string - See Argument Reference above.
- project
Id string - See Argument Reference above.
- target
Project stringId - See Argument Reference above.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- See Argument Reference above.
- str
- The ID of the zone share.
- zone_
id str - See Argument Reference above.
- all_
projects str - See Argument Reference above.
- project_
id str - See Argument Reference above.
- target_
project_ strid - See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- See Argument Reference above.
- String
- The ID of the zone share.
- zone
Id String - See Argument Reference above.
- all
Projects String - See Argument Reference above.
- project
Id String - See Argument Reference above.
- target
Project StringId - See Argument Reference above.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.