Skip to main content

vac_resources

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

Overview​

Namevac_resources
TypeResource
Idovh.network_defense.vac_resources

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the resource
namestringName you chose for the resource
created_atstring (date-time)Date and time the resource was created (wire: createdAt)
iamobjectIAM resource metadata
resource_statusstringCurrent status of the resource. For a VAC resource this is only ever READY or DELETING. (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
updated_atstring (date-time)Date and time the resource was last updated (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_nameReturns a VAC DDoS protection resource with its name, status and creation and update dates. The status is READY, or DELETING while the resource is being removed.
listselectx_pagination_cursor, x_pagination_size, iam_tagsReturns the list of VAC DDoS protection resources within the account. Every resource groups policies, profile and sensitivity with target IP address prefixes in order to tune detection and mitigation rules.
updateupdateresource_name, nameChanges the name of a VAC DDoS protection resource. No other field can be updated through this call.

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"}})
resource_namestring (uuid)Resource name (wire: resourceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns a VAC DDoS protection resource with its name, status and creation and update dates. The status is READY, or DELETING while the resource is being removed.

SELECT
id,
name,
created_at,
iam,
resource_status,
updated_at
FROM ovh.network_defense.vac_resources
WHERE resource_name = '{{ resource_name }}' -- required
;

UPDATE examples​

Changes the name of a VAC DDoS protection resource. No other field can be updated through this call.

UPDATE ovh.network_defense.vac_resources
SET
name = '{{ name }}'
WHERE
resource_name = '{{ resource_name }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
name,
created_at,
resource_status,
updated_at;