{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-api-connect/json-schema/ibm-api-connect-cloud-topology-schema.json",
  "title": "CloudTopology",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-api-connect-cloud-settings-api-openapi.yml#/components/schemas/CloudTopology",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 1023
    },
    "cloud_name": {
      "type": "string"
    },
    "cloud_id": {
      "type": "string"
    },
    "counts": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "users": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "provider_orgs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "catalogs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "draft_products": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "draft_apis": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "apis": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "products": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "consumer_orgs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "subscriptions": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "consumer_apps": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "spaces": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        }
      }
    },
    "orgs": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "total_results": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TopologyProviderOrg"
          }
        },
        "url": {
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "TopologyCatalogs": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "counts": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "members": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "apps": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "subscriptions": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "consumer_orgs": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "products": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "apis": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "product_lifecycle_states": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "staged": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "published": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "deprecated": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "retired": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "archived": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          }
        },
        "consumer_org_list_url": {
          "type": "string"
        },
        "gateway_service_types": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "total_results": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "results": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TopologyGatewayServices"
              }
            }
          }
        },
        "portal_service_types": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "total_results": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "results": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TopologyPortalServices"
              }
            }
          }
        },
        "spaces": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "total_results": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "results": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TopologySpaces"
              }
            }
          }
        }
      }
    },
    "TopologyGatewayServices": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "gateway_service_type": {
          "type": "string",
          "enum": [
            "datapower-gateway",
            "datapower-api-gateway",
            "event-gateway",
            "datapower-nano-gateway",
            "wm-api-gateway"
          ]
        }
      }
    },
    "TopologyPortalServices": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "portal_service_type": {
          "type": "string",
          "enum": [
            "cms",
            "devportal"
          ]
        }
      }
    },
    "TopologyProviderOrg": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "org_type": {
          "type": "string"
        },
        "runtime_api_opt_in_datagather_enabled": {
          "type": "boolean"
        },
        "owner_url": {
          "type": "string"
        },
        "owner": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "email": {
              "type": "string"
            },
            "first_name": {
              "type": "string"
            },
            "last_name": {
              "type": "string"
            }
          }
        },
        "counts": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "members": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "draft_products": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "draft_apis": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            }
          }
        },
        "catalogs": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "total_results": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "results": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TopologyCatalogs"
              }
            }
          }
        }
      }
    },
    "TopologySpaces": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "counts": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "products": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "apis": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            }
          }
        },
        "gateway_service_types": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "total_results": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "results": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TopologyGatewayServices"
              }
            }
          }
        },
        "portal_service_types": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "total_results": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "results": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TopologyPortalServices"
              }
            }
          }
        }
      }
    }
  }
}