UserPoliciesManagement

Add policy created by the user.<br> Required role: <b>admin</b> or <b>user</b> </br>

post/xpanse/policies

Request

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

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

The policy.

enabledboolean required

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

Response

OK

userPolicyIdstring uuid required

The id of the policy.

policystring required

The valid policy created by the user.

csp'HuaweiCloud' | 'FlexibleEngine' | 'OpenstackTestlab' | 'PlusServer' | 'RegioCloud' | 'AlibabaCloud' | 'aws' | 'azure' | 'GoogleCloudPlatform' required
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