{
  "opencollection": "1.0.0",
  "info": {
    "name": "SAP HANA Cloud REST Alerts Instance Mappings API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://{subdomain}.authentication.{region}.hana.ondemand.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Instance Mappings",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Instance Mappings for a Service Instance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cf.{region}.hana.ondemand.com/inventory/v2/serviceInstances/:serviceInstanceId/instanceMappings",
            "params": [
              {
                "name": "serviceInstanceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the SAP HANA Cloud service instance for which to retrieve alerts, metrics, or metering data."
              }
            ]
          },
          "docs": "Retrieves the list of instance mappings associated with a specific SAP HANA Cloud service instance. Instance mappings define associations between instances across different subaccounts or environments."
        },
        {
          "info": {
            "name": "Create an Instance Mapping",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cf.{region}.hana.ondemand.com/inventory/v2/serviceInstances/:serviceInstanceId/instanceMappings",
            "params": [
              {
                "name": "serviceInstanceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the SAP HANA Cloud service instance for which to retrieve alerts, metrics, or metering data."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new instance mapping that associates an SAP HANA Cloud service instance with another instance or environment. This enables cross-subaccount access and multi-environment configurations."
        },
        {
          "info": {
            "name": "Delete an Instance Mapping",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.cf.{region}.hana.ondemand.com/inventory/v2/serviceInstances/:serviceInstanceId/instanceMappings/:mappingId",
            "params": [
              {
                "name": "serviceInstanceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the SAP HANA Cloud service instance for which to retrieve alerts, metrics, or metering data."
              },
              {
                "name": "mappingId",
                "value": "500123",
                "type": "path",
                "description": "The unique identifier of the instance mapping to delete."
              }
            ]
          },
          "docs": "Deletes an existing instance mapping, removing the association between the SAP HANA Cloud service instance and the mapped target."
        }
      ]
    }
  ],
  "bundled": true
}