doEnableSSEPreview
post
/ccadmin/v1/serverExtensions/preview/enable
Enables preview environment for server side extension
Request
Supported Media Types
- application/json
Root Schema : doEnablePreview_request
Type:
Show Source
object
-
enable(required):
boolean
The flag specifies that the preview environment should be enabled. The accepted value for this flag is only true. If you want to disable the preview environment for server side extension then please contact the support team.
Example:
{
"enable":true
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : doEnableSSEPreview_response
Type:
Show Source
object
-
links:
array links
List of navigation links.
-
message:
string
It gives more details about preview status.
-
previewEnabled:
boolean
It specifies that preview is enabled or not for server side extension.
-
progress:
string
It specifies the status of the preview server(pod). It can be either 'none', or 'provisioning', or 'provisioning_complete'. These values signify that the preview server is either not provisioned or under-provisioning or provisioned respectively.
Example:
{
"progress":"provisioning_complete",
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadmin/v1/serverExtensions/preview/enable"
}
],
"message":"Preview is enabled.",
"previewEnabled":true
}
Nested Schema : items
Type:
Show Source
object
-
href:
string
The URL of the link.
-
rel:
string
The link's relation to the current page of results: next, prev or self.
202 Response
Following model is returned when operation succeeds.
Root Schema : doEnableSSEPreview_server_creation_response
Type:
Show Source
object
-
links:
array links
List of navigation links.
-
message:
string
It gives more details about preview status.
-
previewEnabled:
boolean
It specifies that preview is enabled or not for server side extension.
-
progress:
string
It specifies the status of the preview server(pod). It can be either 'none', or 'provisioning', or 'provisioning_complete'. These values signify that the preview server is either not provisioned or under-provisioning or provisioned respectively.
Example:
{
"progress":"provisioning",
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadmin/v1/serverExtensions/preview/enable"
}
],
"message":"SSE preview environment is being provisioned. This process will take 5-10 minutes, please do not upload or delete any extensions until the provisioning process is complete.",
"previewEnabled":false
}
Nested Schema : items
Type:
Show Source
object
-
href:
string
The URL of the link.
-
rel:
string
The link's relation to the current page of results: next, prev or self.
400 Response
Following model is returned when preview is already enabled.
Root Schema : doEnableSSEPreview_badRequest_response
Type:
Show Source
object
-
links:
array links
List of navigation links.
-
message:
string
It gives more details about preview status.
-
previewEnabled:
boolean
It specifies that preview is enabled or not for server side extension.
-
progress:
string
It specifies the status of the preview server(pod). It can be either 'none', or 'provisioning', or 'provisioning_complete'. These values signify that the preview server is either not provisioned or under-provisioning or provisioned respectively.
Example:
{
"progress":"provisioning_complete",
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadmin/v1/serverExtensions/preview/enable"
}
],
"message":"Preview is already enabled.",
"previewEnabled":true
}
Nested Schema : items
Type:
Show Source
object
-
href:
string
The URL of the link.
-
rel:
string
The link's relation to the current page of results: next, prev or self.
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|100322|Preview cannot be enabled|
|100330|Request payload is invalid. Please refer to the documentation for this feature.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code