ip_restrictions_managements
Creates, updates, deletes, gets or lists an ip_restrictions_managements resource.
Overview​
| Name | ip_restrictions_managements |
| Type | Resource |
| Id | ovh.cloud_container_registry.ip_restrictions_managements |
Fields​
The following fields are returned by SELECT queries:
- list
Container registry Get IP Restrictions
| Name | Datatype | Description |
|---|---|---|
created_at | string (date-time) | IP Restrictions creation date (wire: createdAt) |
description | string | The Description of Whitelisted IpBlock |
ip_block | string (ip-block) | Whitelisted IpBlock (example: 192.0.2.0/24) (wire: ipBlock) |
updated_at | string (date-time) | IP Restrictions update date (wire: updatedAt) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | registry_id, service_name | List 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_id | string | RegistryID (wire: registryID) |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
SELECT examples​
- list
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
;