Web service API

How to use PageSeeder's Web service API

<alias>

Summary

The alias of an existing host.

The alias of a <host> in PageSeeder.

Usage context

Permitted contentnone (empty)
Permitted parent<aliases>

Attributes

This element includes the following attributes.

NameTypeRequiredDescription
idxs:longyesThe ID of the group in PageSeeder
namexs:stringyesThe host name of the alias (100)

@id

The PageSeeder database identifier for the alias. It is always an immutable positive long value that is unique on a specific PageSeeder server within the set all aliases.

@name

The name of this alias which should be a valid host name. The value is not case-sensitive and cannot exceed 100 characters.

Examples

 

<host id="1" name="app.example.com" external="false">
   <aliases>
      <alias id="1" name="app.example.org"/>
      <alias id="2" name="app.example.net"/>
      <alias id="3" name="app.localhost"/>
      <alias id="4" name="local.example.org"/>
   </aliases>
</host>

Schema

XML Schema

<xs:element name="alias" type="alias"/>

<xs:complexType name="alias">
  <xs:attribute name="id"   type="id"       use="required"/>
  <xs:attribute name="name" type="hostname" use="required"/>
</xs:complexType>

<xs:simpleType name="hostname">
  <xs:restriction base="xs:string">
    <xs:maxLength value="100"/>
    <xs:pattern value="([a-z0-9]([a-z0-9-]*[a-z0-9])?\.?)+[a-z0-9]([a-z0-9-]*[a-z0-9])?"/>
  </xs:restriction>
</xs:simpleType>

Relax Schema

element host {
   attribute id       { xs:long },
   attribute name     { text { maxLength = "100"}},
}

Compatibility

See also

Created on , last edited on