UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

141 lines (140 loc) 4.17 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a DNS zone share. * * ## Example Usage * * ```typescript * 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", * }); * ``` */ export declare function getZoneShareV2(args: GetZoneShareV2Args, opts?: pulumi.InvokeOptions): Promise<GetZoneShareV2Result>; /** * A collection of arguments for invoking getZoneShareV2. */ export interface GetZoneShareV2Args { /** * If set to `true`, the data source will search * across all projects. If set to `false`, it will only search within the * current project. Defaults to `false`. */ allProjects?: string; /** * The owner project ID. If omitted, it is derived * from the zone share details. */ projectId?: 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. */ region?: string; /** * The ID of the DNS zone share to retrieve. If * provided, the data source returns only the share with this ID. */ shareId?: string; /** * If provided, the data source returns the * share with this target project ID. */ targetProjectId?: string; /** * The ID of the DNS zone for which to get share. */ zoneId: string; } /** * A collection of values returned by getZoneShareV2. */ export interface GetZoneShareV2Result { /** * See Argument Reference above. */ readonly allProjects?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * See Argument Reference above. */ readonly projectId?: string; /** * See Argument Reference above. */ readonly region: string; /** * The ID of the zone share. */ readonly shareId: string; /** * See Argument Reference above. */ readonly targetProjectId?: string; /** * See Argument Reference above. */ readonly zoneId: string; } /** * Use this data source to get information about a DNS zone share. * * ## Example Usage * * ```typescript * 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", * }); * ``` */ export declare function getZoneShareV2Output(args: GetZoneShareV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetZoneShareV2Result>; /** * A collection of arguments for invoking getZoneShareV2. */ export interface GetZoneShareV2OutputArgs { /** * If set to `true`, the data source will search * across all projects. If set to `false`, it will only search within the * current project. Defaults to `false`. */ allProjects?: pulumi.Input<string>; /** * The owner project ID. If omitted, it is derived * from the zone share details. */ projectId?: pulumi.Input<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. */ region?: pulumi.Input<string>; /** * The ID of the DNS zone share to retrieve. If * provided, the data source returns only the share with this ID. */ shareId?: pulumi.Input<string>; /** * If provided, the data source returns the * share with this target project ID. */ targetProjectId?: pulumi.Input<string>; /** * The ID of the DNS zone for which to get share. */ zoneId: pulumi.Input<string>; }