Web Host
A Data Store
A web host is a data store where you store tenants and plans.
| Note |
Parent
This Web Host is contained within a Platform.
Objects
This Web Host contains the following objects:
Properties
The following properties are available:
| Property | Type | Default | Read-Only | Description |
|---|---|---|---|---|
| _doc | string | No | The primary ID | |
| _system | object | No | Metadata maintained by the system | |
| binaryStorageProviderType | string | No | The type identifier for the binary storage provider that backs this data store | |
| datastoreId | string | Yes | The ID of the data store | |
| datastoreTypeId | string | Yes | The data store type identifier | |
| deployerTypes | array | No | ||
| description | string | No | A description of the data store | |
| enableAuthorities | boolean | true | No | Whether to check access control rights for principals against this data store |
| key | string | No | ||
| locked | boolean | Yes | Whether the data store is presently locked. If the data store is locked, then write operations against it will block. | |
| lockedBy | string | No | The principal that holds the lock (if the data store is locked) | |
| maxsize | number | No | The maximum allowed allocation size (on disk) of the data store in bytes. If this size of the data store exceeds this value, write operations will fail. A value of -1 indicates that there is no upper limit. | |
| objectcount | number | No | The number of objects stored within the data store. This includes system-maintained objects. This value is updated periodically and may not be precise at the moment it is read. | |
| size | number | Yes | The last-recorded allocation size (on disk) of the data store in bytes. This value is updated periodically and may not be precise at the moment it is read. | |
| statisticsDate | object | No | Records the time when statistics were last run against the data store. Statistics are run periodically to calculate the data store size and object allocations. | |
| statisticsDirty | boolean | Yes | Whether writes have occurred against this data store since the last time statistics were run. This signals to the system that statistics need to be collected at the next available opportunity. | |
| title | string | No | The title of the data store |
Methods
In this list, … stands for /webhosts/{webhostId}.
- POSTAdd Team Member
…/teams/{teamKey}/members/add - POSTCheck Membership
…/teams/{teamKey}/members/check - POSTCheck Permission
…/permissions/{permissionId}/check - POSTCheck Single Authority
…/authorities/{authorityId}/check - POSTCheck multiple Authorities
/webhosts/authorities/check - POSTCheck multiple Permissions
/webhosts/permissions/check - POSTCreate Stat
…/stats - POSTCreate Web Host
/webhosts - POSTCreate a Team
…/teams - DELETEDelete Web Host (DELETE)
/webhosts/{webhostId} - POSTDelete Web Host (POST …/delete)
…/delete - DELETEDeletes a Team
…/teams/{teamKey} - POSTExport Web Host
…/export - GETGet Team
…/teams/{teamKey} - POSTGrant Authority
…/authorities/{authorityId}/grant - POSTGrant Authority to Team
…/teams/{teamKey}/authorities/{authorityId}/grant - POSTImport Web Host
…/import - GETList Team Authorities
…/teams/{teamKey}/authorities - GETList Teams
…/teams - GETLists Team Members
…/teams/{teamKey}/members - GETLists Web Host
/webhosts - POSTLock Webhost
…/lock - POSTQueries for Web Host
/webhosts/query - GETRead ACL
…/acl/list - GETRead ACL for Principal
…/acl - POSTRead Authorities Report
…/authorities - GETRead Web Host
/webhosts/{webhostId} - POSTRemove Team Member
…/teams/{teamKey}/members/remove - POSTRevoke Authority
…/authorities/{authorityId}/revoke - POSTRevoke Authority from Team
…/teams/{teamKey}/authorities/{authorityId}/revoke - POSTUnlock Webhost
…/unlock - POSTUpdate Web Host (POST …/update)
…/update - PUTUpdate Web Host (PUT)
/webhosts/{webhostId} - PUTUpdate a Team
…/teams/{teamKey}
Add Team Member
POST /webhosts/{webhostId}/teams/{teamKey}/members/add
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
| id | Yes | string |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
Check Membership
POST /webhosts/{webhostId}/teams/{teamKey}/members/check
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
| id | Yes | string |
Response
{
"type": "object",
"description": "Belongs",
"extends": "status",
"properties": {
"belongs": {
"type": "boolean"
},
"ok": null
}
}
Check Permission
POST /webhosts/{webhostId}/permissions/{permissionId}/check
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| permissionId | Yes | string | The ID of the permission |
| id | Yes | string |
Response
{
"$ref": "#/components/schemas/checkPermission"
}
Check Single Authority
POST /webhosts/{webhostId}/authorities/{authorityId}/check
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Check",
"extends": "status",
"properties": {
"check": {
"type": "boolean"
},
"ok": null
}
}
Check multiple Authorities
POST /webhosts/authorities/check
No parameters, response
Parameters
This function has no parameters.
Response
{
"type": "object",
"description": "Check Multiple Authorities Out",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"permissionedId": {
"type": "string"
},
"principalId": {
"type": "string"
},
"authorityId": {
"type": "string"
},
"result": {
"type": "boolean"
}
}
}
}
}
}
Check multiple Permissions
POST /webhosts/permissions/check
No parameters, response
Parameters
This function has no parameters.
Response
{
"type": "object",
"description": "Check Multiple Permissions Out",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"permissionedId": {
"type": "string"
},
"principalId": {
"type": "string"
},
"permissionId": {
"type": "string"
},
"result": {
"type": "boolean"
}
}
}
}
}
}
Create Stat
POST /webhosts/{webhostId}/stats
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Create Web Host
POST /webhosts
No parameters, response
Parameters
This function has no parameters.
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Create a Team
POST /webhosts/{webhostId}/teams
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"extends": "document",
"description": "Team",
"properties": {
"teamableObjectTypeId": {
"type": "string",
"readonly": true
},
"teamableObjectId": {
"type": "string",
"readonly": true
},
"key": {
"type": "string"
},
"groupId": {
"type": "string"
},
"groupDomainId": {
"type": "string"
},
"roleKeys": {
"type": "array",
"items": {
"type": "string"
}
},
"_doc": null,
"_system": null
}
}
Delete Web Host (DELETE)
DELETE /webhosts/{webhostId}
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Web Host (POST …/delete)
POST /webhosts/{webhostId}/delete
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Deletes a Team
DELETE /webhosts/{webhostId}/teams/{teamKey}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Export Web Host
POST /webhosts/{webhostId}/export
Parameters (6), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| groupId | No | string | The Group ID to be assigned to the exported archive |
| artifactId | No | string | The Artifact ID to be assigned to the exported archive |
| versionId | No | string | The Version ID to be assigned to the exported archive |
| vaultId | No | string | The ID of the vault where the exported archive should be saved |
| schedule | No | string | Whether to run the job immediately or in the background (either 'synchronous' or 'asynchronous') |
Response
{
"type": "object",
"description": "Export Configuration",
"properties": {
"startDate": {
"type": "object",
"description": "Only include objects whose modification date is after this time (epoch millis). This is used for partial or rolling exports."
},
"endDate": {
"type": "object",
"description": "Only include objects whose modification date is before this time (epoch millis). This is used for partial or rolling exports."
},
"startChangeset": {
"type": "string",
"description": "Only include data that is relevant to changesets at or beyond the specified changeset."
},
"endChangeset": {
"type": "string",
"description": "Only include data that is relevant to changesets at or before the specified changeset."
},
"includeACLs": {
"type": "boolean",
"default": true,
"description": "Whether to include ACLs during export."
},
"includeTeams": {
"type": "boolean",
"default": true,
"description": "Whether to include Teams during export."
},
"includeActivities": {
"type": "boolean",
"default": true,
"description": "Whether to include Activities during export."
},
"includeBinaries": {
"type": "boolean",
"default": true,
"description": "Whether to include Binaries for data stores during export."
},
"includeAttachments": {
"type": "boolean",
"default": true,
"description": "Whether to include Attachments for Attachables during export."
},
"artifactDependencies": {
"type": "array",
"items": {
"type": "object"
}
},
"artifactIncludes": {
"type": "array",
"items": {
"type": "object"
}
},
"forceIncludes": {
"type": "boolean"
}
}
}
Get Team
GET /webhosts/{webhostId}/teams/{teamKey}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"extends": "document",
"description": "Team",
"properties": {
"teamableObjectTypeId": {
"type": "string",
"readonly": true
},
"teamableObjectId": {
"type": "string",
"readonly": true
},
"key": {
"type": "string"
},
"groupId": {
"type": "string"
},
"groupDomainId": {
"type": "string"
},
"roleKeys": {
"type": "array",
"items": {
"type": "string"
}
},
"_doc": null,
"_system": null
}
}
Grant Authority
POST /webhosts/{webhostId}/authorities/{authorityId}/grant
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Grant Authority to Team
POST /webhosts/{webhostId}/teams/{teamKey}/authorities/{authorityId}/grant
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
| authorityId | Yes | string | The ID or authority key for the authority |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Import Web Host
POST /webhosts/{webhostId}/import
Parameters (6), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| groupId | No | string | The Group ID to be assigned to the exported archive |
| artifactId | No | string | The Artifact ID to be assigned to the exported archive |
| versionId | No | string | The Version ID to be assigned to the exported archive |
| vaultId | No | string | The ID of the vault where the exported archive should be saved |
| schedule | No | string | Whether to run the job immediately or in the background (either 'synchronous' or 'asynchronous') |
Response
{
"type": "object",
"description": "Import Configuration",
"properties": {
"includeACLs": {
"type": "boolean",
"default": true,
"description": "Whether to include ACLs during import."
},
"includeTeams": {
"type": "boolean",
"default": true,
"description": "Whether to include Teams during import."
},
"includeActivities": {
"type": "boolean",
"default": true,
"description": "Whether to include Activities during import."
},
"includeBinaries": {
"type": "boolean",
"default": true,
"description": "Whether to include Binaries for data stores during import."
},
"includeAttachments": {
"type": "boolean",
"default": true,
"description": "Whether to include Attachments for Attachables during import."
},
"strategy": {
"type": "array",
"items": {
"type": "string"
},
"default": "CLONE",
"description": "Either CLONE or COPY_EVERYTHING. Use CLONE to keep the same IDs on import. Use COPY_EVERYTHING to generate all new IDs for all entries on every import."
},
"substitutions": {
"type": "string"
}
}
}
List Team Authorities
GET /webhosts/{webhostId}/teams/{teamKey}/authorities
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"description": "List of Authorities",
"properties": {
"authorities": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
List Teams
GET /webhosts/{webhostId}/teams
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
Lists Team Members
GET /webhosts/{webhostId}/teams/{teamKey}/members
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
Lists Web Host
GET /webhosts
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_webhost"
}
}
}
}
Lock Webhost
POST /webhosts/{webhostId}/lock
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Queries for Web Host
POST /webhosts/query
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_webhost"
}
}
}
}
Read ACL
GET /webhosts/{webhostId}/acl/list
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"description": "Result Map of ACL entries",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_doc": {
"type": "string",
"title": "Principal ID"
},
"name": {
"type": "string",
"title": "Principal Name"
},
"type": {
"type": "string",
"title": "Principal Type"
},
"domainId": {
"type": "string"
},
"domainQualifiedId": {
"type": "string"
},
"domainQualifiedName": {
"type": "string"
},
"principalId": {
"type": "string",
"title": "Principal ID"
},
"userEmail": {
"type": "string"
},
"userFirstName": {
"type": "string"
},
"userLastName": {
"type": "string"
},
"authorities": {
"type": "array",
"title": "Authorities",
"items": {
"type": "string",
"title": "Authority Key"
}
}
}
}
}
}
}
Read ACL for Principal
GET /webhosts/{webhostId}/acl
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| id | Yes | string |
Response
{
"type": "object",
"description": "Result Map of Authority Keys",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "string",
"description": "Authority Key"
}
}
}
}
Read Authorities Report
POST /webhosts/{webhostId}/authorities
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"description": "Authority Report",
"properties": {
"principalId": {
"type": "object",
"properties": {
"id": {
"type": "object",
"properties": {
"role-key": {
"type": "string"
},
"principal": {
"type": "string"
},
"permissioned": {
"type": "string"
},
"inheritsFrom": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"principal": {
"type": "string"
},
"permissioned": {
"type": "string"
}
}
}
}
}
}
}
}
}
Read Web Host
GET /webhosts/{webhostId}
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"extends": "datastore",
"container": "platform",
"description": "Web Host",
"properties": {
"key": {
"type": "string"
},
"deployerTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"title": null,
"description": null,
"datastoreId": null,
"datastoreTypeId": null,
"enableAuthorities": null,
"size": null,
"maxsize": null,
"objectcount": null,
"locked": null,
"lockedBy": null,
"statisticsDate": null,
"statisticsDirty": null,
"binaryStorageProviderType": null,
"_doc": null,
"_system": null
}
}
Remove Team Member
POST /webhosts/{webhostId}/teams/{teamKey}/members/remove
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Revoke Authority
POST /webhosts/{webhostId}/authorities/{authorityId}/revoke
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Revoke Authority from Team
POST /webhosts/{webhostId}/teams/{teamKey}/authorities/{authorityId}/revoke
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
| authorityId | Yes | string | The ID or authority key for the authority |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Unlock Webhost
POST /webhosts/{webhostId}/unlock
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Update Web Host (POST …/update)
POST /webhosts/{webhostId}/update
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Update Web Host (PUT)
PUT /webhosts/{webhostId}
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Update a Team
PUT /webhosts/{webhostId}/teams/{teamKey}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| webhostId | Yes | string | The ID of the web host |
| teamKey | Yes | string | The key identifier for the team |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Schema
{
"type": "object",
"extends": "datastore",
"container": "platform",
"description": "Web Host",
"properties": {
"key": {
"type": "string"
},
"deployerTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"title": null,
"description": null,
"datastoreId": null,
"datastoreTypeId": null,
"enableAuthorities": null,
"size": null,
"maxsize": null,
"objectcount": null,
"locked": null,
"lockedBy": null,
"statisticsDate": null,
"statisticsDirty": null,
"binaryStorageProviderType": null,
"_doc": null,
"_system": null
},
"id": "webhost"
}