Skip to main content

vm_encryption_kms

Creates, updates, deletes, gets or lists a vm_encryption_kms resource.

Overview​

Namevm_encryption_kms
TypeResource
Idovh.dedicated_cloud.vm_encryption_kms

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
kms_idintegerId of the VM Encryption KMS (wire: kmsId)
descriptionstringDescription of your option access network
ipstring (ipv4)IP address of the remote service (example: 192.0.2.0)
kms_tcp_portintegerVM Encryption KMS TCP port (wire: kmsTcpPort)
ssl_thumbprintstringSSL thumbprint of the remote service (wire: sslThumbprint)
statestringState of the option (creating, deleting, delivered, error, toCreate, toDelete, toUpdate, unknown, updating)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectkms_id, service_nameGet a KMS server. Returns the KMS server: IP address, TCP port, SSL thumbprint, description and state.
listselectservice_namex_pagination_modeList KMS servers
createinsertservice_name, ip, ssl_thumbprintCreate a KMS server. Registers a KMS server by IP address and SSL thumbprint. Returns a task to track progress.
deletedeletekms_id, service_nameDelete a KMS server
change_propertiesexeckmsId, serviceName, sslThumbprintUpdate a KMS server. Updates the SSL thumbprint or the description of the KMS server. Returns a task to track progress.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
kmsIdintegerId of the VM Encryption KMS
kms_idintegerId of the VM Encryption KMS (wire: kmsId)
serviceNamestringDomain of the service
service_namestringDomain of the service (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a KMS server. Returns the KMS server: IP address, TCP port, SSL thumbprint, description and state.

SELECT
kms_id,
description,
ip,
kms_tcp_port,
ssl_thumbprint,
state
FROM ovh.dedicated_cloud.vm_encryption_kms
WHERE kms_id = '{{ kms_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a KMS server. Registers a KMS server by IP address and SSL thumbprint. Returns a task to track progress.

INSERT INTO ovh.dedicated_cloud.vm_encryption_kms (
description,
ip,
ssl_thumbprint,
service_name
)
SELECT
'{{ description }}',
'{{ ip }}' /* required */,
'{{ ssl_thumbprint }}' /* required */,
'{{ service_name }}'
RETURNING
name,
datacenter_id,
filer_id,
host_id,
network_access_id,
order_id,
parent_task_id,
task_id,
user_id,
vlan_id,
created_by,
created_from,
description,
end_date,
execution_date,
last_modification_date,
maintenance_date_from,
maintenance_date_to,
network,
progress,
state,
type
;

DELETE examples​

Delete a KMS server

DELETE FROM ovh.dedicated_cloud.vm_encryption_kms
WHERE kms_id = '{{ kms_id }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Update a KMS server. Updates the SSL thumbprint or the description of the KMS server. Returns a task to track progress.

EXEC ovh.dedicated_cloud.vm_encryption_kms.change_properties
@kmsId='{{ kmsId }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"description": "{{ description }}",
"sslThumbprint": "{{ sslThumbprint }}"
}'
;