ServiceCatalog

List of all approved services which are available for user to order.<br> Required role: <b>admin</b> or <b>user</b> </br>

get/xpanse/catalog/services

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/xpanse/catalog/services
  • Auth: OAuth 2 (authorization code, authorization URL https://xpanse-demo.eclipseprojects.io/oauth/v2/authorize, token URL https://xpanse-demo.eclipseprojects.io/oauth/v2/token)

Query parameters

categoryName'ai' | 'compute' | 'container' | 'storage' | 'network' | 'database' | 'mediaService' | 'security' | 'middleware' | 'others'

category of the service

cspName'HuaweiCloud' | 'FlexibleEngine' | 'OpenstackTestlab' | 'PlusServer' | 'RegioCloud' | 'AlibabaCloud' | 'aws' | 'azure' | 'GoogleCloudPlatform'

name of the cloud service provider

serviceNamestring

name of the service

serviceVersionstring

version of the service

serviceHostingType'self' | 'service-vendor'

Defines which cloud service account is used for deploying cloud resources.

who hosts ths cloud resources

Response

OK

serviceTemplateIdstring uuid required

The id of the orderable service.

category'ai' | 'compute' | 'container' | 'storage' | 'network' | 'database' | 'mediaService' | 'security' | 'middleware' | 'others' required
namestring required

The name of the orderable service.

shortCodestring required

Short code of the service.

versionstring required

The version of the orderable service.

csp'HuaweiCloud' | 'FlexibleEngine' | 'OpenstackTestlab' | 'PlusServer' | 'RegioCloud' | 'AlibabaCloud' | 'aws' | 'azure' | 'GoogleCloudPlatform' required
serviceVendorstring required

The serviceVendor of the orderable service.

descriptionstring required

The description of the orderable service.

iconstring required

The icon of the orderable service.

serviceHostingType'self' | 'service-vendor' required

Defines which cloud service account is used for deploying cloud resources.

eulastring

End user license agreement content of the service.

Example response

[
  {
    "serviceActions": [
      {
        "actionManageScripts": [
          {
            "ansibleScriptConfig": {
              "playbookName": "playbook-name.yml",
              "virtualEnv": "/tmp/virtualEnv",
              "pythonVersion": "3.10",
              "requirementsFile": "modules/requirements.txt"
            }
          }
        ]
      }
    ],
    "serviceObjects": [
      {
        "objectsManage": [
          {
            "objectHandlerScript": {
              "ansibleScriptConfig": {
                "playbookName": "playbook-name.yml",
                "virtualEnv": "/tmp/virtualEnv",
                "pythonVersion": "3.10",
                "requirementsFile": "modules/requirements.txt"
              }
            }
          }
        ]
      }
    ]
  }
]

Changes

    • info

      added the required property / to the response with the status (media type: application/json)

    • info

      added the required property / to the response with the status (media type: application/hal+json)

    • breaking

      the /// response's property type changed from object to no type for status (media type: application/json)

    • breaking

      the /// response's property type changed from object to no type for status (media type: application/hal+json)

    • breaking

      the ///// response's property type changed from object to no type for status (media type: application/json)

    • breaking

      the ///// response's property type changed from object to no type for status (media type: application/hal+json)

    • breaking

      the /////// response's property type changed from object to no type for status (media type: application/json)

    • breaking

      the /////// response's property type changed from object to no type for status (media type: application/hal+json)

    • breaking

      the //////// response's property type changed from object to no type for status (media type: application/json)

    • breaking

      the //////// response's property type changed from object to no type for status (media type: application/hal+json)