Resource XCAP Server Configuration

Resource

XCAP Server Configuration

Workspace

Sentinel Services

Path

/xcap

Operations

Operation

Retrieve a list of sub-resources offered by this resource

Request Method

GET

Path

/xcap

Parameters

Request Body

Not used

Success Result

200 OK

Response Headers

None

Response Body

/xcap/hostmappings

Operation

Retrieve a listing of XCAP host mappings

Request Method

GET

Path

/xcap/hostmappings

Parameters

  • page — the page to retrieve if results span multiple pages (default = 1 if not provided)

Request Body

Not used

Success Result

200 OK

Response Headers

None

Response Body

Operation

Create a new XCAP host mapping

Request Method

POST

Path

/xcap/hostmappings

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 XCAP host mapping

Request Method

GET

Path

/xcap/hostmappings/{hostname}

Parameters

Request Body

Not used

Success Result

200 OK

Response Headers

None

Response Body

Operation

Update an existing XCAP host mapping

Request Method

PUT

Path

/xcap/hostmappings/{hostname}

Parameters

Request Body

Success Result

204 No content

Response Headers

None

Response Body

Not used

Operation

Delete an existing XCAP host mapping

Request Method

DELETE

Path

/xcap/hostmappings/{hostname}

Parameters

Request Body

Not used

Success Result

204 No content

Response Headers

None

Response Body

Not used

Schemas

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>

XcapHostMappings

Class: com.opencloud.sentinel.rest.server.resources.XcapHostMappingResource$XcapHostMappings

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"
                }
              }
            }
          }
        }
      }
    },
    "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="link" type="LinkType"/>

  <xs:element name="xcapHostMapping" type="XcapHostMappingEntryType"/>

  <xs:element name="xcapHostMappings" type="XcapHostMappingsType"/>

  <xs:complexType name="XcapHostMappingsType">
    <xs:sequence>
      <xs:element ref="xcapHostMapping" 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="XcapHostMappingEntryType">
    <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>

XcapHostMappingDto

Class: com.opencloud.sentinel.provisioning.xcap.XcapHostMappingDto

JSON
{
  "type" : "object",
  "properties" : {
    "hostname" : {
      "type" : "string"
    },
    "rhinoInstanceId" : {
      "type" : "string"
    },
    "networkOperator" : {
      "type" : "string"
    },
    "remUserAccount" : {
      "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="xcapHostMapping" type="XcapHostMappingType"/>

  <xs:complexType name="XcapHostMappingType">
    <xs:sequence>
      <xs:element name="hostname" type="xs:string"/>
      <xs:element name="rhinoInstanceId" type="xs:string"/>
      <xs:element name="networkOperator" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="remUserAccount" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
Previous page