POST /a/config/datasource/{Name}

Create or update a datasource

Body Parameters

Name Description Type Required
ApiKey Corresponding objects service api key string
ApiSecret Corresponding objects service api secret string
CreationDate Data Source creation date integer
Disabled Whether this data source is disabled or running boolean
EncryptionKey Encryption key used for encrypting data string
EncryptionMode Type of encryption applied before sending data to storage #/definitions/objectEncryptionMode
LastSynchronizationDate Data Source last synchronization date integer
Name Name of the data source (max length 34) string
ObjectsBaseFolder Corresponding objects service base folder inside the bucket string
ObjectsBucket Corresponding objects service bucket string
ObjectsHost Corresponding objects service host string
ObjectsPort Corresponding objects service port integer
ObjectsSecure Corresponding objects service connection type boolean
ObjectsServiceName Corresponding objects service name (underlying s3 service) string
PeerAddress Peer address of the data source string
StorageConfiguration List of key values describing storage configuration object
StorageType Type of underlying storage (LOCAL, S3, AZURE, GCS) #/definitions/objectStorageType
VersioningPolicyName Versioning policy describes how files are kept in the versioning queue string
Watch Not implemented, whether to watch for underlying changes on the FS boolean

Body Example

{
  "ApiKey": "string",
  "ApiSecret": "string",
  "CreationDate": 10,
  "Disabled": true,
  "EncryptionKey": "string",
  "EncryptionMode": "string",
  "LastSynchronizationDate": 10,
  "Name": "string",
  "ObjectsBaseFolder": "string",
  "ObjectsBucket": "string",
  "ObjectsHost": "string",
  "ObjectsPort": 10,
  "ObjectsSecure": true,
  "ObjectsServiceName": "string",
  "PeerAddress": "string",
  "StorageConfiguration": {},
  "StorageType": "string",
  "VersioningPolicyName": "string",
  "Watch": true
}

Response Example (200)

Response Type /definitions/objectDataSource

{
  "ApiKey": "string",
  "ApiSecret": "string",
  "CreationDate": 10,
  "Disabled": true,
  "EncryptionKey": "string",
  "EncryptionMode": "string",
  "LastSynchronizationDate": 10,
  "Name": "string",
  "ObjectsBaseFolder": "string",
  "ObjectsBucket": "string",
  "ObjectsHost": "string",
  "ObjectsPort": 10,
  "ObjectsSecure": true,
  "ObjectsServiceName": "string",
  "PeerAddress": "string",
  "StorageConfiguration": {},
  "StorageType": "string",
  "VersioningPolicyName": "string",
  "Watch": true
}
Auto generated by Pydio Cells Enterprise Distribution v2.0.0 on 5-Nov-2019
Back to top