ServicePoliciesManagement

Add policy for the registered service template.<br> Required role: <b>admin</b> or <b>isv</b> </br>

post/xpanse/service/policies

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/xpanse/service/policies
  • 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)

Request body

serviceTemplateIdstring uuid required

The id of registered service template which the policy belongs to.

flavorNameListstring[]

The flavor name list which the policy belongs to. If the list is empty, then the policy will be executed for during service deployment of all flavors.

policystring required

The policy.

enabledboolean required

Is the policy enabled. true:enabled;false:disabled.

Response

OK

servicePolicyIdstring uuid required

The id of the policy.

policystring required

The valid policy belongs to the service.

serviceTemplateIdstring uuid required

The id of registered service template which the policy belongs to.

flavorNameListstring[]

The flavor name list which the policy belongs to. If the list is empty, then the policy will be executed for during service deployment of all flavors.

enabledboolean required

Is the policy enabled.

createdTimestring date-time required

Time of the policy created.

lastModifiedTimestring date-time required

Time of the policy updated.

Changes

    • breaking

      the request property's minLength was increased from 0 to 1

    • warning

      added the new Invalid Service Deployment State enum value to the response property for the response status

    • warning

      added the new Invalid Service Deployment State enum value to the response property for the response status

    • warning

      added the new Invalid Service Deployment State enum value to the response property for the response status

    • warning

      added the new Invalid Service Deployment State enum value to the response property for the response status

    • warning

      added the new Invalid Service Deployment State enum value to the response property for the response status

    • warning

      added the new Invalid Service Deployment State enum value to the response property for the response status

    • warning

      added the new Invalid Service Deployment State enum value to the response property for the response status

    • warning

      added the new Invalid Service Object Request enum value to the response property for the response status

    • warning

      added the new Invalid Service Object Request enum value to the response property for the response status

    • warning

      added the new Invalid Service Object Request enum value to the response property for the response status

    • warning

      added the new Invalid Service Object Request enum value to the response property for the response status

    • warning

      added the new Invalid Service Object Request enum value to the response property for the response status

    • warning

      added the new Invalid Service Object Request enum value to the response property for the response status

    • warning

      added the new Invalid Service Object Request enum value to the response property for the response status

    • warning

      added the new Service Object Change Order Already Exists enum value to the response property for the response status

    • warning

      added the new Service Object Change Order Already Exists enum value to the response property for the response status

    • warning

      added the new Service Object Change Order Already Exists enum value to the response property for the response status

    • warning

      added the new Service Object Change Order Already Exists enum value to the response property for the response status

    • warning

      added the new Service Object Change Order Already Exists enum value to the response property for the response status

    • warning

      added the new Service Object Change Order Already Exists enum value to the response property for the response status

    • warning

      added the new Service Object Change Order Already Exists enum value to the response property for the response status

    • warning

      added the new Service Object Not Found enum value to the response property for the response status

    • warning

      added the new Service Object Not Found enum value to the response property for the response status

    • warning

      added the new Service Object Not Found enum value to the response property for the response status

    • warning

      added the new Service Object Not Found enum value to the response property for the response status

    • warning

      added the new Service Object Not Found enum value to the response property for the response status

    • warning

      added the new Service Object Not Found enum value to the response property for the response status

    • warning

      added the new Service Object Not Found enum value to the response property for the response status