Skip to main content

ip_restrictions_managements

Creates, updates, deletes, gets or lists an ip_restrictions_managements resource.

Overview​

Nameip_restrictions_managements
TypeResource
Idovh.cloud_container_registry.ip_restrictions_managements

Fields​

The following fields are returned by SELECT queries:

Container registry Get IP Restrictions

NameDatatypeDescription
created_atstring (date-time)IP Restrictions creation date (wire: createdAt)
descriptionstringThe Description of Whitelisted IpBlock
ip_blockstring (ip-block)Whitelisted IpBlock (example: 192.0.2.0/24) (wire: ipBlock)
updated_atstring (date-time)IP Restrictions update date (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregistry_id, service_nameList your IP restrictions applied on Harbor UI and API

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"}})
registry_idstringRegistryID (wire: registryID)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

List your IP restrictions applied on Harbor UI and API

SELECT
created_at,
description,
ip_block,
updated_at
FROM ovh.cloud_container_registry.ip_restrictions_managements
WHERE registry_id = '{{ registry_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;