All URIs are relative to https://api.ionos.com/cloudapi/v5
Method | HTTP request | Description |
---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
datacentersLabelsDelete
object datacentersLabelsDelete(datacenterId, key, opts)
Delete a Label from Data Center
This will remove a label from the data center.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Delete a Label from Data Center
api_instance
.datacentersLabelsDelete({
datacenterId: datacenterId_example,
key: key_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
object
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersLabelsFindByKey
datacentersLabelsFindByKey(datacenterId, key, opts)
Retrieve a Label of Data Center
This will retrieve the properties of a associated label to a data center.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Retrieve a Label of Data Center
api_instance
.datacentersLabelsFindByKey({
datacenterId: datacenterId_example,
key: key_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersLabelsGet
datacentersLabelsGet(datacenterId, opts)
List all Data Center Labels
You can retrieve a list of all labels associated with a data center
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// List all Data Center Labels
api_instance
.datacentersLabelsGet({
datacenterId: datacenterId_example,
pretty: true,
depth: 56,
xContractNumber: 56,
offset: 56,
limit: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResources
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersLabelsPost
datacentersLabelsPost(datacenterId, label, opts)
Add a Label to Data Center
This will add a label to the data center.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Add a Label to Data Center
api_instance
.datacentersLabelsPost({
datacenterId: datacenterId_example,
label: label_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: application/json
datacentersLabelsPut
datacentersLabelsPut(datacenterId, key, label, opts)
Modify a Label of Data Center
This will modify the value of the label on a data center.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Modify a Label of Data Center
api_instance
.datacentersLabelsPut({
datacenterId: datacenterId_example,
key: key_example,
label: label_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: application/json
object datacentersServersLabelsDelete(datacenterId, serverId, key, opts)
Delete a Label from Server
This will remove a label from the server.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Delete a Label from Server
api_instance
.datacentersServersLabelsDelete({
datacenterId: datacenterId_example,
serverId: serverId_example,
key: key_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
object
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersServersLabelsFindByKey(datacenterId, serverId, key, opts)
Retrieve a Label of Server
This will retrieve the properties of a associated label to a server.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Retrieve a Label of Server
api_instance
.datacentersServersLabelsFindByKey({
datacenterId: datacenterId_example,
serverId: serverId_example,
key: key_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersServersLabelsGet(datacenterId, serverId, opts)
List all Server Labels
You can retrieve a list of all labels associated with a server
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// List all Server Labels
api_instance
.datacentersServersLabelsGet({
datacenterId: datacenterId_example,
serverId: serverId_example,
pretty: true,
depth: 56,
xContractNumber: 56,
offset: 56,
limit: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResources
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersServersLabelsPost(datacenterId, serverId, label, opts)
Add a Label to Server
This will add a label to the server.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Add a Label to Server
api_instance
.datacentersServersLabelsPost({
datacenterId: datacenterId_example,
serverId: serverId_example,
label: label_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: application/json
datacentersServersLabelsPut(datacenterId, serverId, key, label, opts)
Modify a Label of Server
This will modify the value of the label on a server.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Modify a Label of Server
api_instance
.datacentersServersLabelsPut({
datacenterId: datacenterId_example,
serverId: serverId_example,
key: key_example,
label: label_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: application/json
datacentersVolumesLabelsDelete
object datacentersVolumesLabelsDelete(datacenterId, volumeId, key, opts)
Delete a Label from Volume
This will remove a label from the volume.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Delete a Label from Volume
api_instance
.datacentersVolumesLabelsDelete({
datacenterId: datacenterId_example,
volumeId: volumeId_example,
key: key_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
object
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersVolumesLabelsFindByKey
datacentersVolumesLabelsFindByKey(datacenterId, volumeId, key, opts)
Retrieve a Label of Volume
This will retrieve the properties of a associated label to a volume.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Retrieve a Label of Volume
api_instance
.datacentersVolumesLabelsFindByKey({
datacenterId: datacenterId_example,
volumeId: volumeId_example,
key: key_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersVolumesLabelsGet
datacentersVolumesLabelsGet(datacenterId, volumeId, opts)
List all Volume Labels
You can retrieve a list of all labels associated with a volume
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// List all Volume Labels
api_instance
.datacentersVolumesLabelsGet({
datacenterId: datacenterId_example,
volumeId: volumeId_example,
pretty: true,
depth: 56,
xContractNumber: 56,
offset: 56,
limit: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResources
Authorization
Basic Authentication, Token Authentication
Content-Type: Not defined
datacentersVolumesLabelsPost
datacentersVolumesLabelsPost(datacenterId, volumeId, label, opts)
Add a Label to Volume
This will add a label to the volume.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Add a Label to Volume
api_instance
.datacentersVolumesLabelsPost({
datacenterId: datacenterId_example,
volumeId: volumeId_example,
label: label_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: application/json
datacentersVolumesLabelsPut
datacentersVolumesLabelsPut(datacenterId, volumeId, key, label, opts)
Modify a Label of Volume
This will modify the value of the label on a volume.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});
const api_instance = new ionoscloud.LabelApi(config);
// Modify a Label of Volume
api_instance
.datacentersVolumesLabelsPut({
datacenterId: datacenterId_example,
volumeId: volumeId_example,
key: key_example,
label: label_example,
pretty: true,
depth: 56,
xContractNumber: 56,
options: {}
})
.then((response) => console.log(response.data))
.catch((error) => console.log(error.response.data));
Parameters
Return type
LabelResource
Authorization
Basic Authentication, Token Authentication
Content-Type: application/json
ipblocksLabelsDelete
object ipblocksLabelsDelete(ipblockId, key, opts)
Delete a Label from IP Block
This will remove a label from the Ip Block.
Examples
const ionoscloud = require('@ionos-cloud/sdk-nodejs');
// setup authorization
const config = new ionoscloud.Configuration({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
apiKey: 'YOUR_API_KEY'
});