Resource Features
Resource |
Features |
---|---|
Workspace |
Sentinel Services |
Path |
/features |
Operations
Operation |
Retrieve a list of features that can be configured |
---|---|
Request Method |
GET |
Path |
/features |
Parameters |
|
Request Body |
Not used |
Success Result |
200 OK |
Response Headers |
None |
Response Body |
/features/{featureKey}
Operation |
Retrieve a list of sub-resources for the specified feature |
---|---|
Request Method |
GET |
Path |
/features/{featureKey} |
Parameters |
|
Request Body |
Not used |
Success Result |
200 OK |
Response Headers |
None |
Response Body |
/features/{featureKey}/addresslists/{schemaName}
Operation |
Retrieve a listing of address lists |
---|---|
Request Method |
GET |
Path |
/features/{featureKey}/addresslists/{schemaName} |
Parameters |
|
Request Body |
Not used |
Success Result |
200 OK |
Response Headers |
None |
Response Body |
/features/{featureKey}/addresslists/{schemaName}/config
Operation |
Create a new address list |
---|---|
Request Method |
POST |
Path |
/features/{featureKey}/addresslists/{schemaName}/config |
Parameters |
|
Request Body |
|
Success Result |
201 Created |
Response Headers |
Location — contains the URL to access the created record |
Response Body |
Not used |
Operation |
Retrieve address list configuration |
---|---|
Request Method |
GET |
Path |
/features/{featureKey}/addresslists/{schemaName}/config/{listName} |
Parameters |
|
Request Body |
Not used |
Success Result |
200 OK |
Response Headers |
None |
Response Body |
Operation |
Delete an existing address list |
---|---|
Request Method |
DELETE |
Path |
/features/{featureKey}/addresslists/{schemaName}/config/{listName} |
Parameters |
|
Request Body |
Not used |
Success Result |
204 No content |
Response Headers |
None |
Response Body |
Not used |
Operation |
Update an existing address list config |
---|---|
Request Method |
PUT |
Path |
/features/{featureKey}/addresslists/{schemaName}/config/{listName} |
Parameters |
|
Request Body |
|
Success Result |
204 No content |
Response Headers |
None |
Response Body |
Not used |
/features/{featureKey}/addresslists/{schemaName}/lists
Operation |
Retrieve a listing of address list entries |
---|---|
Request Method |
GET |
Path |
/features/{featureKey}/addresslists/{schemaName}/lists/{listName} |
Parameters |
|
Request Body |
Not used |
Success Result |
200 OK |
Response Headers |
None |
Response Body |
Operation |
Create a new address list entry |
---|---|
Request Method |
POST |
Path |
/features/{featureKey}/addresslists/{schemaName}/lists/{listName} |
Parameters |
|
Request Body |
|
Success Result |
201 Created |
Response Headers |
Location — contains the URL to access the created record |
Response Body |
Not used |
Operation |
Retrieve an existing address list entry |
---|---|
Request Method |
GET |
Path |
/features/{featureKey}/addresslists/{schemaName}/lists/{listName}/{address} |
Parameters |
|
Request Body |
Not used |
Success Result |
200 OK |
Response Headers |
None |
Response Body |
Operation |
Update an existing address list entry |
---|---|
Request Method |
PUT |
Path |
/features/{featureKey}/addresslists/{schemaName}/lists/{listName}/{address} |
Parameters |
|
Request Body |
|
Success Result |
204 No content |
Response Headers |
None |
Response Body |
Not used |
Operation |
Delete an existing address list entry |
---|---|
Request Method |
DELETE |
Path |
/features/{featureKey}/addresslists/{schemaName}/lists/{listName}/{address} |
Parameters |
|
Request Body |
Not used |
Success Result |
204 No content |
Response Headers |
None |
Response Body |
Not used |
/features/{featureKey}/configuration
Operation |
Retrieve feature configuration for the specified feature |
---|---|
Request Method |
GET |
Path |
/features/{featureKey}/configuration/{configType}/{configId} |
Parameters |
|
Request Body |
Not used |
Success Result |
200 OK |
Response Headers |
None |
Response Body |
Operation |
Create a new feature config entry |
---|---|
Request Method |
POST |
Path |
/features/{featureKey}/configuration/{configType} |
Parameters |
|
Request Body |
|
Success Result |
201 Created |
Response Headers |
Location — contains the URL to access the created record |
Response Body |
Not used |
Operation |
Update an existing feature config entry |
---|---|
Request Method |
PUT |
Path |
/features/{featureKey}/configuration/{configType} |
Parameters |
|
Request Body |
|
Success Result |
204 No content |
Response Headers |
None |
Response Body |
Not used |
Operation |
Update an existing feature config entry |
---|---|
Request Method |
PUT |
Path |
/features/{featureKey}/configuration/{configType}/{configId} |
Parameters |
|
Request Body |
|
Success Result |
204 No content |
Response Headers |
None |
Response Body |
Not used |
Operation |
Delete an existing feature config entry |
---|---|
Request Method |
DELETE |
Path |
/features/{featureKey}/configuration/{configType} |
Parameters |
|
Request Body |
Not used |
Success Result |
204 No content |
Response Headers |
None |
Response Body |
Not used |
Operation |
Retrieve feature configuration for the specified feature |
---|---|
Request Method |
GET |
Path |
/features/{featureKey}/configuration/{configType} |
Parameters |
|
Request Body |
Not used |
Success Result |
200 OK |
Response Headers |
None |
Response Body |
If scope is provided: FeatureConfiguration Otherwise: FeatureConfigs |
Operation |
Delete an existing feature config entry |
---|---|
Request Method |
DELETE |
Path |
/features/{featureKey}/configuration/{configType}/{configId} |
Parameters |
|
Request Body |
Not used |
Success Result |
204 No content |
Response Headers |
None |
Response Body |
Not used |
Schemas
Features
Class: com.opencloud.sentinel.rest.server.resources.FeaturesResource$Features
JSON
{
"type" : "object",
"properties" : {
"entries" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"resources" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"rel" : {
"type" : "string"
},
"href" : {
"type" : "string"
},
"title" : {
"type" : "string"
}
}
}
}
}
}
}
}
}
XML
<?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="feature" type="FeatureType"/>
<xs:element name="features" type="FeaturesType"/>
<xs:element name="link" type="LinkType"/>
<xs:complexType name="FeaturesType">
<xs:sequence>
<xs:element ref="feature" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FeatureType">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="resources" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="link" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LinkType">
<xs:sequence/>
<xs:attribute name="rel" type="xs:string"/>
<xs:attribute name="href" type="xs:string"/>
<xs:attribute name="title" type="xs:string"/>
</xs:complexType>
</xs:schema>
Feature
Class: com.opencloud.sentinel.rest.common.Feature
JSON
{
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"resources" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"rel" : {
"type" : "string"
},
"href" : {
"type" : "string"
},
"title" : {
"type" : "string"
}
}
}
}
}
}
XML
<?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="feature" type="FeatureType"/>
<xs:element name="link" type="LinkType"/>
<xs:complexType name="FeatureType">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="resources" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="link" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LinkType">
<xs:sequence/>
<xs:attribute name="rel" type="xs:string"/>
<xs:attribute name="href" type="xs:string"/>
<xs:attribute name="title" type="xs:string"/>
</xs:complexType>
</xs:schema>
AddressLists
Class: com.opencloud.sentinel.rest.common.AddressLists
JSON
{
"type" : "object",
"properties" : {
"lists" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"resources" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"rel" : {
"type" : "string"
},
"href" : {
"type" : "string"
},
"title" : {
"type" : "string"
}
}
}
}
}
}
},
"next" : {
"type" : "string"
},
"prev" : {
"type" : "string"
}
}
}
XML
<?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="addressList" type="AddressListsEntryType"/>
<xs:element name="addressLists" type="AddressListsType"/>
<xs:element name="link" type="LinkType"/>
<xs:complexType name="AddressListsType">
<xs:sequence>
<xs:element ref="addressList" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="next" type="xs:string"/>
<xs:attribute name="prev" type="xs:string"/>
</xs:complexType>
<xs:complexType name="AddressListsEntryType">
<xs:complexContent>
<xs:extension base="simpleEntry">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="simpleEntry" abstract="true">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="resources" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="link" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LinkType">
<xs:sequence/>
<xs:attribute name="rel" type="xs:string"/>
<xs:attribute name="href" type="xs:string"/>
<xs:attribute name="title" type="xs:string"/>
</xs:complexType>
</xs:schema>
AddressListConfig
Class: com.opencloud.sentinel.provisioning.addresslists.AddressListConfig
JSON
{
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"defaultSearchMode" : {
"type" : "integer"
},
"shouldCache" : {
"type" : "boolean",
"required" : true
},
"version" : {
"type" : "number"
}
}
}
XML
<?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="addressListConfig" type="AddressListConfigType"/>
<xs:complexType name="AddressListConfigType">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="defaultSearchMode" type="xs:int"/>
<xs:element name="shouldCache" type="xs:boolean"/>
<xs:element name="version" type="xs:long"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
AddressListEntries
Class: com.opencloud.sentinel.rest.common.AddressListEntries
JSON
{
"type" : "object",
"properties" : {
"addresses" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"resources" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"rel" : {
"type" : "string"
},
"href" : {
"type" : "string"
},
"title" : {
"type" : "string"
}
}
}
}
}
}
},
"next" : {
"type" : "string"
},
"prev" : {
"type" : "string"
}
}
}
XML
<?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="addressListEntries" type="AddressListEntriesType"/>
<xs:element name="addressListEntry" type="AddressListEntriesEntryType"/>
<xs:element name="link" type="LinkType"/>
<xs:complexType name="AddressListEntriesType">
<xs:sequence>
<xs:element ref="addressListEntry" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="next" type="xs:string"/>
<xs:attribute name="prev" type="xs:string"/>
</xs:complexType>
<xs:complexType name="AddressListEntriesEntryType">
<xs:complexContent>
<xs:extension base="simpleEntry">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="simpleEntry" abstract="true">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="resources" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="link" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LinkType">
<xs:sequence/>
<xs:attribute name="rel" type="xs:string"/>
<xs:attribute name="href" type="xs:string"/>
<xs:attribute name="title" type="xs:string"/>
</xs:complexType>
</xs:schema>
AddressListEntryExt
Class: com.opencloud.sentinel.provisioning.addresslists.AddressListEntryExt
JSON
{
"type" : "object",
"properties" : {
"attributes" : {
"type" : "object"
},
"address" : {
"type" : "string"
},
"description" : {
"type" : "string"
}
}
}
XML
<?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="addressListEntry" type="AddressListEntryType"/>
<xs:element name="addressListEntryExt" type="AddressListEntryExtType"/>
<xs:complexType name="AddressListEntryExtType">
<xs:complexContent>
<xs:extension base="AddressListEntryType">
<xs:sequence>
<xs:element name="attributes">
<xs:complexType>
<xs:sequence>
<xs:element name="entry" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="key" minOccurs="0" type="xs:string"/>
<xs:element name="value" minOccurs="0" type="profileAttribute"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AddressListEntryType">
<xs:sequence>
<xs:element name="address" type="xs:string" minOccurs="0"/>
<xs:element name="description" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="profileAttribute">
<xs:sequence>
<xs:element name="array" type="xs:boolean"/>
<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="valueArray" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="valueString" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
FeatureConfiguration
Class: com.opencloud.sentinel.provisioning.featureconfig.FeatureConfiguration
XML
<?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="featureConfiguration" type="FeatureConfigurationType"/>
<xs:complexType name="FeatureConfigurationType">
<xs:sequence>
<xs:element name="attributes">
<xs:complexType>
<xs:sequence>
<xs:element name="entry" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="key" minOccurs="0" type="xs:string"/>
<xs:element name="value" minOccurs="0" type="profileAttribute"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="profileAttribute">
<xs:sequence>
<xs:element name="array" type="xs:boolean"/>
<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="valueArray" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="valueString" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
FeatureConfigs
Class: com.opencloud.sentinel.rest.common.FeatureConfigs
JSON
{
"type" : "object",
"properties" : {
"configs" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"resources" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"rel" : {
"type" : "string"
},
"href" : {
"type" : "string"
},
"title" : {
"type" : "string"
}
}
}
}
}
}
},
"next" : {
"type" : "string"
},
"prev" : {
"type" : "string"
}
}
}
XML
<?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="featureConfig" type="FeatureConfigsEntryType"/>
<xs:element name="featureConfigs" type="FeatureConfigsType"/>
<xs:element name="link" type="LinkType"/>
<xs:complexType name="FeatureConfigsType">
<xs:sequence>
<xs:element ref="featureConfig" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="next" type="xs:string"/>
<xs:attribute name="prev" type="xs:string"/>
</xs:complexType>
<xs:complexType name="FeatureConfigsEntryType">
<xs:complexContent>
<xs:extension base="simpleEntry">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="simpleEntry" abstract="true">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="0"/>
<xs:element name="resources" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="link" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LinkType">
<xs:sequence/>
<xs:attribute name="rel" type="xs:string"/>
<xs:attribute name="href" type="xs:string"/>
<xs:attribute name="title" type="xs:string"/>
</xs:complexType>
</xs:schema>