Glusterfs
Last updated
Last updated
/storage/glusterfs
Names, example: resource01,!resource02,resource42
Environments, example: PRODUCTION,DEVELOPMENT
Status, example: ACTIVE,INACTIVE
Tags, example: mytagkey:mytagvalue,application:itcare
Filter list by monitoring status
Filter list by monitoring on call status
Filter list by backup status
Filter list by DRP status
Filter list by patch party status
Topology, example: Cluster
Version, example: v1.26.15, v1.28.13, etc...
VirtualIp, example: 127.0.0.1, 127.0, 127, 10.%.62
Results page you want to retrieve (0..N)
Number of records per page.
Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria is not supported.
This method allows to create a GlusterFS cluster.
You will have to know at the minimum :
area
attribute). Areas can be available in List Regions method.name
attribute). The name can contain any lowercase characters, dashes and underscores.diskSize
attribute). The possible values are at least 10 and maximum 1024 (representing GB).admPassword
attribute). The password must be between 12 and 20 characters with at least one lowercase character, one uppercase character, one digit and one special characteruserName
attribute). Maximum size is 32 characters, lowercase characters, underscore and dashe are allowedserviceId
attribute).networkId
attribute).This method is asynchronous (status code 202
) and you'll have to wait for async action to be completed by checking its status.
POST /storage/glusterfs
{
"name": "mygluster01",
"diskSize": "15",
"admPassword": "mySuperPassword123!!",
"userName": "dda",
"networkId": 123,
"area":"EB-A",
"serviceId": 46922
}
/storage/glusterfs
The user password
^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#&()–{}:;',?/*~$^+=<>]).{12,20}$
Area. Refer to an Area of a Region, that is a low-latency network area, available in List Regions method. If absent, default Area of Region will be used.
Indicates if backup has to be setup on instance. If absent, backup will be setup automatically if instance is in a production service.
BackupPolicy id. Refers to desired backup policy to be applied for the database, must be set when backup is enabled.
The volume configured within the configuration process of the GlusterFs cluster
Indicates if alerting should be activated. If absent, set to false.
Indicates if monitoring will be setup. If absent, it will be automatically be setup if this is an production environment, or if backup is enabled.
Name of GlusterFs cluster
[a-z0-9_\-]{5,60}$
The network Id of the ELS cluster
Indicates why a production resource is not under backup.
Indicates why a production resource is not under monitoring.
Indicates why a production resource is not replicated.
Node sizing for cluster
Indicates if on call teams will be called on non business hours if an incident occurs on instance. If absent, set to false.
Product platform of the cluster
Region. that is a low-latency network area, available in List Regions method. If absent, default Area of Region will be used.
Regulation. Refer to the regulation of the Area (HDS|STANDARD). If absent, default 'STANDARD' will be used.
Indicates if replication will be setup. If absent, it will be automatically be setup if this is an production environment
BackupPolicy id. Refers to desired backup policy to be applied for the virtual machine, must be set when backup is enabled.
id of service to put instance in.
[a-z0-9_\-]{1,32}$
This method allows to update a GlusterFS cluster.
Structure of payload is generic and describes :
operation
you want to be performedoptions
data relative to the operation performed - see details.Below are different operations currently implemented.
Start
Use the start
operation to start a GlusterFS cluster.
Create nodes operation will add the new nodes in the cluster by availability zone. You can specify the availability zone you need in the request.
This method is synchronous (status code 202
).
Example :
PATCH /storage/glusterfs/1234
{
"operation": "start",
"options": {
"changeReference": "RFC_123"
}
}
Stop
Use the stop
operation to stop a GlusterFS cluster.
This operation cannot be undone afterwards.
This method is synchronous (status code 202
).
PATCH /storage/glusterfs/1234
{
"operation": "start",
"options": {
"changeReference": "RFC_123"
}
}
Resize GlusterFS instance
Use the resize
operation to resize the nodes of the GlusterFS instance and the instance itself.
This operation cannot be undone afterwards.
This method is asynchronous (status code 202
).
PATCH /storage/glusterfs/1234
{
"operation":"resize",
"options": {
"sizing": "2cpu4gb"
}
}
Add Volume
Use the add_volume
operation to add a Volume to a GlusterFS cluster.
This operation cannot be undone afterwards.
This method is synchronous (status code 202
).
PATCH /storage/glusterfs/1234
{
"operation": "add_volume",
"options": {
"diskSize": "42",
"userName": "dda",
"userPass":"mySuperPassw0rd42"
}
}
Resize Volume
Use the resize_volume
operation to resize a Volume to a GlusterFS cluster.
This operation cannot be undone afterwards.
This method is synchronous (status code 202
).
PATCH /storage/glusterfs/1234
{
"operation": "resize_volume",
"options": {
"name":"dda",
"diskSize": "42",
"userName": "dda"
}
}
Resize Volume
Use the delete_volume
operation to delete a Volume from a GlusterFS cluster.
This operation cannot be undone afterwards.
This method is synchronous (status code 202
).
PATCH /storage/glusterfs/1234
{
"operation": "delete_volume",
"options": {
"name":"dda"
}
}
Update Monitoring
Use the update_monitoring
operation to update the monitoring state of the GlusterFS cluster.
Use the state
option to turn on/off monitoring.
Use the on_call
option to turn on/off 24/7 monitoring.
This method is synchronous (status code 202
).
PATCH /storage/glusterfs/1234
{
"operation": "update_monitoring",
"options": {
"state": true,
"on_call": true
}
}
Update Patch Party
Use the update_patch_party
operation to update the patch party scheduled plan of the GlusterFS cluster.
excluded
option to turn on/off patch party.patchGroup
option to select the patching group, the patchGroup
is optional, and is only allowed when the farm has one member.exclusionReason
option to explain the reason of excluding the resource from patch part.This method is synchronous (status code 202
).
PATCH /storage/glusterfs/1234
{
"operation": "update_patch_party",
"options": {
"patchParty": {
"excluded": false,
"patchGroup": "3"
}
}
}
PATCH /storage/glusterfs/1234
{
"operation": "update_patch_party",
"options": {
"patchParty": {
"excluded": true,
"exclusionReason": "I want to handle this by myself"
}
}
}
/storage/glusterfs/{id}