{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-domain-domain-service-with-iam-schema.json",
  "title": "domain.DomainServiceWithIAM",
  "description": "General information about a domain name service",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-domain-openapi.yml#/components/schemas/domain.DomainServiceWithIAM",
  "type": "object",
  "properties": {
    "contactAdmin": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.ContactSummary"
        }
      ],
      "description": "Administrative contact data",
      "readOnly": true
    },
    "contactBilling": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.ContactSummary"
        }
      ],
      "description": "Billing contact data",
      "readOnly": true
    },
    "contactOwner": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.ContactSummary"
        }
      ],
      "description": "Owner (registrant) contact data",
      "readOnly": true
    },
    "contactTech": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.ContactSummary"
        }
      ],
      "description": "Technical contact data",
      "readOnly": true
    },
    "dnssecState": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.DnssecStateEnum"
        }
      ],
      "description": "Current DNSSEC state of the domain name",
      "readOnly": true
    },
    "dnssecSupported": {
      "type": "boolean",
      "description": "Whether DNSSEC is activated for this domain name",
      "readOnly": true
    },
    "domain": {
      "type": "string",
      "description": "Domain name",
      "readOnly": true
    },
    "expirationDate": {
      "type": "string",
      "description": "Date when the domain name will expire, if not renewed",
      "format": "date-time",
      "readOnly": true
    },
    "glueRecordIpv6Supported": {
      "type": "boolean",
      "description": "Whether the registry supports IPv6 glue records",
      "readOnly": true
    },
    "glueRecordMultiIpSupported": {
      "type": "boolean",
      "description": "Whether the registry supports multi-ip glue records",
      "readOnly": true
    },
    "hostSupported": {
      "type": "boolean",
      "description": "Whether the registry supports hosts as independent entities",
      "readOnly": true
    },
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "readOnly": true
    },
    "lastUpdate": {
      "type": "string",
      "description": "Last update date",
      "format": "date-time",
      "readOnly": true
    },
    "nameServerType": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.nameServer.NameServerTypeEnum"
        }
      ],
      "description": "Name servers type"
    },
    "nameServers": {
      "type": "array",
      "description": "Name servers list",
      "items": {
        "$ref": "#/$defs/domain.nameServer.NameServer"
      },
      "readOnly": true
    },
    "offer": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.OfferEnum"
        }
      ],
      "description": "Offer associated with the domain name",
      "readOnly": true
    },
    "owoSupported": {
      "type": "boolean",
      "description": "Whether Whois data obfuscation is supported for this domain name",
      "readOnly": true
    },
    "parentService": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.ParentService"
        }
      ],
      "description": "Parent service",
      "nullable": true,
      "readOnly": true
    },
    "renewalDate": {
      "type": "string",
      "description": "Date when the domain name should be renewed (relevant if renewalState is automatic_renew)",
      "format": "date-time",
      "readOnly": true
    },
    "renewalState": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.RenewalStateEnum"
        }
      ],
      "description": "Current renewal state of the domain name",
      "readOnly": true
    },
    "serviceId": {
      "type": "integer",
      "description": "Technical service identifier",
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.DomainStateEnum"
        }
      ],
      "description": "Current state of the domain name",
      "readOnly": true
    },
    "suspensionState": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.SuspensionStateEnum"
        }
      ],
      "description": "Current suspension state of the domain name",
      "readOnly": true
    },
    "transferLockStatus": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.LockStatusEnum"
        }
      ],
      "description": "Current transfer lock status of the domain name"
    },
    "whoisOwner": {
      "type": "string",
      "description": "Owner (registrant) contact ID (contact data can be edited via /me/contact/<ID>)",
      "readOnly": true
    }
  },
  "$defs": {
    "domain.ContactSummary": {
      "type": "object",
      "description": "A contact summary contains the personal data of a user",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique contact identifier (contact data can be edited via /me/contact/<ID>)",
          "readOnly": true
        }
      }
    },
    "domain.DnssecStateEnum": {
      "type": "string",
      "description": "Domain dnssec state",
      "enum": [
        "disabled",
        "enabled",
        "not_supported"
      ]
    },
    "domain.DomainStateEnum": {
      "type": "string",
      "description": "Domain name current state",
      "enum": [
        "autorenew_in_progress",
        "autorenew_registry_in_progress",
        "deleted",
        "dispute",
        "expired",
        "ok",
        "outgoing_transfer",
        "pending_create",
        "pending_delete",
        "pending_incoming_transfer",
        "pending_installation",
        "registry_suspended",
        "restorable",
        "technical_suspended"
      ]
    },
    "domain.LockStatusEnum": {
      "type": "string",
      "description": "Domain lock status",
      "enum": [
        "locked",
        "locking",
        "unavailable",
        "unlocked",
        "unlocking"
      ]
    },
    "domain.OfferEnum": {
      "type": "string",
      "description": "Offer",
      "enum": [
        "diamond",
        "gold",
        "platinum"
      ]
    },
    "domain.ParentService": {
      "type": "object",
      "description": "Parent service",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the parent service",
          "readOnly": true
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/domain.ParentServiceTypeEnum"
            }
          ],
          "description": "Type of the parent service",
          "readOnly": true
        }
      }
    },
    "domain.ParentServiceTypeEnum": {
      "type": "string",
      "description": "Parent service type enum",
      "enum": [
        "/allDom"
      ]
    },
    "domain.RenewalStateEnum": {
      "type": "string",
      "description": "Domain renewal state",
      "enum": [
        "automatic_renew",
        "cancellation_complete",
        "cancellation_requested",
        "manual_renew",
        "unpaid"
      ]
    },
    "domain.SuspensionStateEnum": {
      "type": "string",
      "description": "Domain suspension state",
      "enum": [
        "not_suspended",
        "suspended"
      ]
    },
    "domain.nameServer.NameServer": {
      "type": "object",
      "description": "Name server configuration",
      "properties": {
        "id": {
          "type": "integer",
          "description": "ID of the name server",
          "readOnly": true
        },
        "ipv4": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv4"
            }
          ],
          "description": "IPv4 adress of the name server",
          "nullable": true,
          "readOnly": true
        },
        "ipv6": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv6"
            }
          ],
          "description": "IPv6 adress  of the name server",
          "nullable": true,
          "readOnly": true
        },
        "nameServer": {
          "type": "string",
          "description": "Name of the name server",
          "readOnly": true
        },
        "nameServerType": {
          "allOf": [
            {
              "$ref": "#/$defs/domain.nameServer.NameServerTypeEnum"
            }
          ],
          "description": "Type of the name server",
          "readOnly": true
        }
      }
    },
    "domain.nameServer.NameServerTypeEnum": {
      "type": "string",
      "description": "DNS server type",
      "enum": [
        "anycast",
        "dedicated",
        "empty",
        "external",
        "hold",
        "hosted",
        "hosting",
        "mixed",
        "parking"
      ]
    },
    "iam.ResourceMetadata": {
      "type": "object",
      "description": "IAM resource metadata embedded in services models",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Resource display name",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "description": "Unique identifier of the resource",
          "format": "uuid",
          "readOnly": true
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/iam.ResourceMetadata.StateEnum"
            }
          ],
          "description": "Resource state",
          "nullable": true,
          "readOnly": true
        },
        "tags": {
          "type": [
            "object",
            "null"
          ],
          "description": "Resource tags. Tags that were internally computed are prefixed with ovh:",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "urn": {
          "type": "string",
          "description": "Unique resource name used in policies",
          "readOnly": true
        }
      }
    },
    "iam.ResourceMetadata.StateEnum": {
      "type": "string",
      "description": "Resource state",
      "enum": [
        "EXPIRED",
        "IN_CREATION",
        "OK",
        "SUSPENDED"
      ]
    },
    "ipv4": {
      "type": "string",
      "description": "IPv4 address (e.g., 192.0.2.0)",
      "format": "ipv4"
    },
    "ipv6": {
      "type": "string",
      "description": "IPv6 address (e.g., 2001:41d0:1:1994::1)",
      "format": "ipv6"
    }
  }
}