{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/intersight/json-schema/intersight-networkconfig-policy-response-schema.json",
  "title": "networkconfig.Policy.Response",
  "description": "The response body of a HTTP GET request for the 'networkconfig.Policy' resource.\nThe value may be one of the following types.\n1. When 'tag' is specified in the URL query, the response schema\n    is a summary of the tag usage.\n1. When '$apply' is specified in the URL query, the response schema\n    is dynamically-generated schema based on the $apply value.\n1. When '$count' is specified in the URL query, the response is\n    a simple object providing the count of the resources.\n1. In all other cases, the response is a list of 'networkconfig.Policy' resources.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intersight-networkconfig-api-openapi.yml#/components/schemas/networkconfig.Policy.Response",
  "x-one-of-name": "networkconfig.Policy.Response",
  "oneOf": [
    {
      "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.DocumentCount"
    },
    {
      "$ref": "#/$defs/networkconfig.Policy.List"
    },
    {
      "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.AggregateTransform"
    },
    {
      "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.TagSummary"
    }
  ],
  "$defs": {
    "networkconfig.Policy": {
      "title": "Network Connectivity",
      "description": "The Network Connectivity Policy is a reusable policy that configures DNS settings for a server's management interface (Cisco IMC).\n#### Purpose\nThe purpose of this policy is to standardize the DNS configuration for server management across an organization. It allows administrators to define primary and alternate DNS servers for both IPv4 and IPv6, and to control whether the server should attempt to dynamically register its hostname with a DNS server.\n#### Key Concepts\n- **Centralized DNS Configuration:** Provides a single policy to manage DNS server settings, ensuring consistency across multiple endpoints.\n- **IPv4 and IPv6 Support:** The policy allows for separate DNS configurations for both IP address families.\n- **Dynamic DNS (DDNS):** Includes options to enable dynamic DNS and specify a domain, allowing the server's management controller to automatically update its DNS record.\n- **Profile-Based Application:** The policy is attached to a Server Profile to apply the settings to the assigned physical server.\n- **Impact Awareness:** Changes to this policy are flagged with MgmtNetworkDisconnection, as updating DNS settings can cause a brief interruption in management connectivity.",
      "x-allOf-name": "networkconfig.Policy",
      "allOf": [
        {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/policy.AbstractPolicy"
        },
        {
          "type": "object",
          "description": "Definition of the list of properties defined in 'networkconfig.Policy', excluding properties defined in parent classes.",
          "required": [
            "ClassId",
            "ObjectType"
          ],
          "properties": {
            "ClassId": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
              "enum": [
                "networkconfig.Policy"
              ],
              "default": "networkconfig.Policy",
              "x-enum-as-string": true
            },
            "ObjectType": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
              "enum": [
                "networkconfig.Policy"
              ],
              "default": "networkconfig.Policy",
              "x-enum-as-string": true
            },
            "AlternateIpv4dnsServer": {
              "description": "IP address of the secondary DNS server.",
              "type": "string",
              "x-omitempty": true
            },
            "AlternateIpv6dnsServer": {
              "description": "IP address of the secondary DNS server.",
              "type": "string",
              "x-omitempty": true
            },
            "DynamicDnsDomain": {
              "description": "The domain name appended to a hostname for a Dynamic DNS (DDNS) update. If left blank, only a hostname is sent to the DDNS update request.",
              "type": "string",
              "pattern": "^$|^[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*$",
              "minLength": 0,
              "maxLength": 255,
              "x-omitempty": true
            },
            "EnableDynamicDns": {
              "description": "If enabled, updates the resource records to the DNS from Cisco IMC.",
              "type": "boolean",
              "x-omitempty": true
            },
            "EnableIpv4dnsFromDhcp": {
              "description": "If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv4 in Cisco IMC to enable it.",
              "type": "boolean",
              "x-omitempty": true
            },
            "EnableIpv6": {
              "description": "If enabled, allows to configure IPv6 properties.",
              "type": "boolean",
              "x-omitempty": true
            },
            "EnableIpv6dnsFromDhcp": {
              "description": "If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv6 in Cisco IMC to enable it.",
              "type": "boolean",
              "x-omitempty": true
            },
            "PreferredIpv4dnsServer": {
              "description": "IP address of the primary DNS server.",
              "type": "string",
              "x-omitempty": true
            },
            "PreferredIpv6dnsServer": {
              "description": "IP address of the primary DNS server.",
              "type": "string",
              "x-omitempty": true
            },
            "ApplianceAccount": {
              "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/iam.Account.Relationship",
              "description": "A reference to a iamAccount resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline."
            },
            "Organization": {
              "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/organization.Organization.Relationship",
              "description": "A reference to a organizationOrganization resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
              "x-createOnly": true
            },
            "Profiles": {
              "deprecated": true,
              "x-sunset": "2028-03-01",
              "description": "An array of relationships to policyAbstractConfigProfile resources.",
              "type": [
                "array",
                "null"
              ],
              "items": {
                "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/policy.AbstractConfigProfile.Relationship"
              }
            }
          }
        }
      ]
    },
    "networkconfig.Policy.List": {
      "title": "List of 'networkconfig.Policy' resources",
      "description": "This resource list is returned as a response to a HTTP GET request that does not include a specific resource identifier.",
      "allOf": [
        {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.BaseResponse"
        },
        {
          "type": "object",
          "properties": {
            "Count": {
              "description": "The total number of 'networkconfig.Policy' resources matching the request, accross all pages.\nThe 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter.",
              "type": "integer",
              "format": "int32"
            },
            "Results": {
              "description": "The array of 'networkconfig.Policy' resources matching the request.",
              "type": [
                "array",
                "null"
              ],
              "items": {
                "$ref": "#/$defs/networkconfig.Policy"
              }
            }
          }
        }
      ]
    }
  }
}