Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.dns/v1beta2.getPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Fetches the representation of an existing Policy.
Using getPolicy
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 getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>def get_policy(client_operation_id: Optional[str] = None,
               policy: Optional[str] = None,
               project: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(client_operation_id: Optional[pulumi.Input[str]] = None,
               policy: Optional[pulumi.Input[str]] = None,
               project: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput> Note: This function is named LookupPolicy in the Go SDK.
public static class GetPolicy 
{
    public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:dns/v1beta2:getPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Policy string
- ClientOperation stringId 
- Project string
- Policy string
- ClientOperation stringId 
- Project string
- policy String
- clientOperation StringId 
- project String
- policy string
- clientOperation stringId 
- project string
- policy str
- client_operation_ strid 
- project str
- policy String
- clientOperation StringId 
- project String
getPolicy Result
The following output properties are available:
- AlternativeName Pulumi.Server Config Google Native. DNS. V1Beta2. Outputs. Policy Alternative Name Server Config Response 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- Description string
- A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
- EnableInbound boolForwarding 
- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
- EnableLogging bool
- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
- Kind string
- Name string
- User-assigned name for this policy.
- Networks
List<Pulumi.Google Native. DNS. V1Beta2. Outputs. Policy Network Response> 
- List of network names specifying networks to which this policy is applied.
- AlternativeName PolicyServer Config Alternative Name Server Config Response 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- Description string
- A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
- EnableInbound boolForwarding 
- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
- EnableLogging bool
- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
- Kind string
- Name string
- User-assigned name for this policy.
- Networks
[]PolicyNetwork Response 
- List of network names specifying networks to which this policy is applied.
- alternativeName PolicyServer Config Alternative Name Server Config Response 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- description String
- A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
- enableInbound BooleanForwarding 
- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
- enableLogging Boolean
- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
- kind String
- name String
- User-assigned name for this policy.
- networks
List<PolicyNetwork Response> 
- List of network names specifying networks to which this policy is applied.
- alternativeName PolicyServer Config Alternative Name Server Config Response 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- description string
- A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
- enableInbound booleanForwarding 
- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
- enableLogging boolean
- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
- kind string
- name string
- User-assigned name for this policy.
- networks
PolicyNetwork Response[] 
- List of network names specifying networks to which this policy is applied.
- alternative_name_ Policyserver_ config Alternative Name Server Config Response 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- description str
- A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
- enable_inbound_ boolforwarding 
- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
- enable_logging bool
- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
- kind str
- name str
- User-assigned name for this policy.
- networks
Sequence[PolicyNetwork Response] 
- List of network names specifying networks to which this policy is applied.
- alternativeName Property MapServer Config 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- description String
- A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
- enableInbound BooleanForwarding 
- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
- enableLogging Boolean
- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
- kind String
- name String
- User-assigned name for this policy.
- networks List<Property Map>
- List of network names specifying networks to which this policy is applied.
Supporting Types
PolicyAlternativeNameServerConfigResponse     
- Kind string
- TargetName List<Pulumi.Servers Google Native. DNS. V1Beta2. Inputs. Policy Alternative Name Server Config Target Name Server Response> 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- Kind string
- TargetName []PolicyServers Alternative Name Server Config Target Name Server Response 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- kind String
- targetName List<PolicyServers Alternative Name Server Config Target Name Server Response> 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- kind string
- targetName PolicyServers Alternative Name Server Config Target Name Server Response[] 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- kind str
- target_name_ Sequence[Policyservers Alternative Name Server Config Target Name Server Response] 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
- kind String
- targetName List<Property Map>Servers 
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
PolicyAlternativeNameServerConfigTargetNameServerResponse        
- ForwardingPath string
- Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
- Ipv4Address string
- IPv4 address to forward queries to.
- Ipv6Address string
- IPv6 address to forward to. Does not accept both fields (ipv4 & ipv6) being populated. Public preview as of November 2022.
- Kind string
- ForwardingPath string
- Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
- Ipv4Address string
- IPv4 address to forward queries to.
- Ipv6Address string
- IPv6 address to forward to. Does not accept both fields (ipv4 & ipv6) being populated. Public preview as of November 2022.
- Kind string
- forwardingPath String
- Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
- ipv4Address String
- IPv4 address to forward queries to.
- ipv6Address String
- IPv6 address to forward to. Does not accept both fields (ipv4 & ipv6) being populated. Public preview as of November 2022.
- kind String
- forwardingPath string
- Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
- ipv4Address string
- IPv4 address to forward queries to.
- ipv6Address string
- IPv6 address to forward to. Does not accept both fields (ipv4 & ipv6) being populated. Public preview as of November 2022.
- kind string
- forwarding_path str
- Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
- ipv4_address str
- IPv4 address to forward queries to.
- ipv6_address str
- IPv6 address to forward to. Does not accept both fields (ipv4 & ipv6) being populated. Public preview as of November 2022.
- kind str
- forwardingPath String
- Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
- ipv4Address String
- IPv4 address to forward queries to.
- ipv6Address String
- IPv6 address to forward to. Does not accept both fields (ipv4 & ipv6) being populated. Public preview as of November 2022.
- kind String
PolicyNetworkResponse  
- Kind string
- NetworkUrl string
- The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
- Kind string
- NetworkUrl string
- The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
- kind String
- networkUrl String
- The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
- kind string
- networkUrl string
- The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
- kind str
- network_url str
- The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
- kind String
- networkUrl String
- The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi