delowan.googlecloud.gcp_dns_managed_zone_info (1.0.2) — module

Gather info for GCP ManagedZone

Authors: Google Inc. (@googlecloudplatform)

preview | supported by community

Install collection

Install with ansible-galaxy collection install delowan.googlecloud:==1.0.2


Add to requirements.yml

  collections:
    - name: delowan.googlecloud
      version: 1.0.2

Description

Gather info for GCP ManagedZone


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get info on a managed zone
  gcp_dns_managed_zone_info:
    dns_name: test.somewild2.example.com.
    project: test_project
    auth_kind: serviceaccount
    service_account_file: "/tmp/auth.pem"

Inputs

    
scopes:
    description:
    - Array of scopes to be used
    elements: str
    type: list

project:
    description:
    - The Google Cloud Platform project to use.
    type: str

dns_name:
    description:
    - Restricts the list to return only zones with this domain name.
    elements: str
    type: list

env_type:
    description:
    - Specifies which Ansible environment you're running this module within.
    - This should not be set unless you know what you're doing.
    - This only alters the User Agent string for any API requests.
    type: str

auth_kind:
    choices:
    - application
    - machineaccount
    - serviceaccount
    description:
    - The type of credential used.
    required: true
    type: str

service_account_file:
    description:
    - The path of a Service Account JSON file if serviceaccount is selected as type.
    type: path

service_account_email:
    description:
    - An optional service account email address if machineaccount is selected and the
      user does not wish to use the default email.
    type: str

service_account_contents:
    description:
    - The contents of a Service Account JSON file, either in a dictionary or as a JSON
      string that represents it.
    type: jsonarg

Outputs

resources:
  contains:
    creationTime:
      description:
      - The time that this resource was created on the server.
      - This is in RFC3339 text format.
      returned: success
      type: str
    description:
      description:
      - A mutable string of at most 1024 characters associated with this resource
        for the user's convenience. Has no effect on the managed zone's function.
      returned: success
      type: str
    dnsName:
      description:
      - The DNS name of this managed zone, for instance "example.com.".
      returned: success
      type: str
    dnssecConfig:
      contains:
        defaultKeySpecs:
          contains:
            algorithm:
              description:
              - String mnemonic specifying the DNSSEC algorithm of this key.
              returned: success
              type: str
            keyLength:
              description:
              - Length of the keys in bits.
              returned: success
              type: int
            keyType:
              description:
              - Specifies whether this is a key signing key (KSK) or a zone signing
                key (ZSK). Key signing keys have the Secure Entry Point flag set and,
                when active, will only be used to sign resource record sets of type
                DNSKEY. Zone signing keys do not have the Secure Entry Point flag
                set and will be used to sign all other types of resource record sets.
              returned: success
              type: str
            kind:
              description:
              - Identifies what kind of resource this is.
              returned: success
              type: str
          description:
          - Specifies parameters that will be used for generating initial DnsKeys
            for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
            you must also provide one for the other.
          - default_key_specs can only be updated when the state is `off`.
          returned: success
          type: complex
        kind:
          description:
          - Identifies what kind of resource this is.
          returned: success
          type: str
        nonExistence:
          description:
          - Specifies the mechanism used to provide authenticated denial-of-existence
            responses.
          - non_existence can only be updated when the state is `off`.
          returned: success
          type: str
        state:
          description:
          - Specifies whether DNSSEC is enabled, and what mode it is in.
          returned: success
          type: str
      description:
      - DNSSEC configuration.
      returned: success
      type: complex
    forwardingConfig:
      contains:
        targetNameServers:
          contains:
            forwardingPath:
              description:
              - Forwarding path for this TargetNameServer. If unset or `default` Cloud
                DNS will make forwarding decision based on address ranges, i.e. RFC1918
                addresses go to the VPC, Non-RFC1918 addresses go to the Internet.
                When set to `private`, Cloud DNS will always send queries through
                VPC for this target .
              returned: success
              type: str
            ipv4Address:
              description:
              - IPv4 address of a target name server.
              returned: success
              type: str
          description:
          - List of target name servers to forward to. Cloud DNS will select the best
            available name server if more than one target is given.
          returned: success
          type: complex
      description:
      - The presence for this field indicates that outbound forwarding is enabled
        for this zone. The value of this field contains the set of destinations to
        forward to.
      returned: success
      type: complex
    id:
      description:
      - Unique identifier for the resource; defined by the server.
      returned: success
      type: int
    labels:
      description:
      - A set of key/value label pairs to assign to this ManagedZone.
      returned: success
      type: dict
    name:
      description:
      - User assigned name for this resource.
      - Must be unique within the project.
      returned: success
      type: str
    nameServerSet:
      description:
      - Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
        is a set of DNS name servers that all host the same ManagedZones. Most users
        will leave this field unset.
      returned: success
      type: str
    nameServers:
      description:
      - Delegate your managed_zone to these virtual name servers; defined by the server
        .
      returned: success
      type: list
    peeringConfig:
      contains:
        targetNetwork:
          contains:
            networkUrl:
              description:
              - The fully qualified URL of the VPC network to forward queries to.
              - This should be formatted like `U(https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`)
                .
              returned: success
              type: str
          description:
          - The network with which to peer.
          returned: success
          type: complex
      description:
      - The presence of this field indicates that DNS Peering is enabled for this
        zone. The value of this field contains the network to peer with.
      returned: success
      type: complex
    privateVisibilityConfig:
      contains:
        networks:
          contains:
            networkUrl:
              description:
              - The fully qualified URL of the VPC network to bind to.
              - This should be formatted like `U(https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`)
                .
              returned: success
              type: str
          description:
          - The list of VPC networks that can see this zone.
          returned: success
          type: complex
      description:
      - For privately visible zones, the set of Virtual Private Cloud resources that
        the zone is visible from.
      returned: success
      type: complex
    visibility:
      description:
      - 'The zone''s visibility: public zones are exposed to the Internet, while private
        zones are visible only to Virtual Private Cloud resources.'
      returned: success
      type: str
  description: List of resources
  returned: always
  type: complex