Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cds/terraform-provider-ovh.pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ parameters:
skipthistest.vrack:
type: boolean
description: Skip vRack tests
skipthistest.vrackservices:
type: boolean
description: Skip VrackServices tests
skipthistest.okms:
type: boolean
description: Skip OKMS tests
Expand Down
12 changes: 12 additions & 0 deletions .cds/terraform-provider-ovh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,18 @@ workflow:
pipeline: terraform-provider-ovh-testacc
when:
- success
Tests_VrackServices:
application: terraform-provider-ovh
depends_on:
- terraform-provider-ovh-pre-sweepers
environment: acctests
one_at_a_time: true
parameters:
testargs: -run 'VrackServices'
skipthispipeline: "{{.workflow.terraform-provider-ovh.pip.skipthistest.vrackservices}}"
pipeline: terraform-provider-ovh-testacc
when:
- success
Tests_IPFirewall:
application: terraform-provider-ovh
depends_on:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export OVH_CLOUD_PROJECT_FAILOVER_IP_TEST="..."
export OVH_CLOUD_PROJECT_FAILOVER_IP_ROUTED_TO_1_TEST="..."
export OVH_CLOUD_PROJECT_FAILOVER_IP_ROUTED_TO_2_TEST="..."
export OVH_VRACK_SERVICE_TEST="..."
export OVH_VRACK_SERVICES_SERVICE_TEST="..."
export OVH_ZONE_TEST="..."
export OVH_DOMAIN_NS1_HOST_TEST="..."
export OVH_DOMAIN_NS1_IP_TEST="..."
Expand Down
138 changes: 138 additions & 0 deletions docs/data-sources/vrackservices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ovh_vrackservices Data Source - terraform-provider-ovh"
subcategory: "Vrack Services"
description: |-
Retrieve a vRack Services
---

# ovh_vrackservices (Data Source)

Retrieve a vRack Services



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `vrack_services_id` (String) Vrack services ID

### Read-Only

- `checksum` (String) Computed hash used to control concurrent modification requests. Here, it represents the current target specification value
- `created_at` (String) Date of the vRack Services delivery
- `current_state` (Attributes) Current configuration applied to the vRack Services (see [below for nested schema](#nestedatt--current_state))
- `current_tasks` (Attributes List) Asynchronous operations ongoing on the vRack Services (see [below for nested schema](#nestedatt--current_tasks))
- `iam` (Attributes) IAM resource metadata (see [below for nested schema](#nestedatt--iam))
- `id` (String) Unique identifier
- `resource_status` (String) Reflects the readiness of the vRack Services. A new target specification request will be accepted only in `READY` status
- `target_spec` (Attributes) Last target specification of the vRack Services (see [below for nested schema](#nestedatt--target_spec))
- `updated_at` (String) Date of the Last vRack Services update

<a id="nestedatt--current_state"></a>
### Nested Schema for `current_state`

Read-Only:

- `product_status` (String) Product status of the vRack Services
- `region` (String) Region of the vRack Services. List of compatible regions can be retrieved from /reference/region
- `subnets` (Attributes List) Subnets of the current vRack Services (see [below for nested schema](#nestedatt--current_state--subnets))

<a id="nestedatt--current_state--subnets"></a>
### Nested Schema for `current_state.subnets`

Read-Only:

- `cidr` (String) IP address range of the subnet in CIDR format
- `display_name` (String) Display name of the subnet
- `service_endpoints` (Attributes List) Service endpoints of the subnet (see [below for nested schema](#nestedatt--current_state--subnets--service_endpoints))
- `service_range` (Attributes) Defines a smaller subnet dedicated to the managed services IPs (see [below for nested schema](#nestedatt--current_state--subnets--service_range))
- `vlan` (Number) Unique inner VLAN that allows subnets segregation

<a id="nestedatt--current_state--subnets--service_endpoints"></a>
### Nested Schema for `current_state.subnets.service_endpoints`

Read-Only:

- `endpoints` (Attributes List) Endpoints representing the IPs assigned to the managed services (see [below for nested schema](#nestedatt--current_state--subnets--service_endpoints--endpoints))
- `managed_service_urn` (String) IAM Resource URN of the managed service. Compatible managed service types are listed by /reference/compatibleManagedServiceType call.

<a id="nestedatt--current_state--subnets--service_endpoints--endpoints"></a>
### Nested Schema for `current_state.subnets.service_endpoints.endpoints`

Read-Only:

- `description` (String) IP description defined in the managed service
- `ip` (String) IP address assigned by OVHcloud



<a id="nestedatt--current_state--subnets--service_range"></a>
### Nested Schema for `current_state.subnets.service_range`

Read-Only:

- `cidr` (String) CIDR dedicated to the subnet's services
- `remaining_ips` (Number) Number of remaining IPs in the service range
- `reserved_ips` (Number) Number of service range IPs reserved by OVHcloud
- `used_ips` (Number) Number of service range IPs assigned to the managed services




<a id="nestedatt--current_tasks"></a>
### Nested Schema for `current_tasks`

Read-Only:

- `id` (String) Identifier of the current task
- `link` (String) Link to the task details
- `status` (String) Current global status of the current task
- `type` (String) Type of the current task


<a id="nestedatt--iam"></a>
### Nested Schema for `iam`

Read-Only:

- `display_name` (String) Resource display name
- `id` (String) Unique identifier of the resource
- `state` (String) Resource state
- `urn` (String) Unique resource name used in policies


<a id="nestedatt--target_spec"></a>
### Nested Schema for `target_spec`

Read-Only:

- `subnets` (Attributes List) Target specification of the subnets. Maximum one subnet per vRack Services (see [below for nested schema](#nestedatt--target_spec--subnets))

<a id="nestedatt--target_spec--subnets"></a>
### Nested Schema for `target_spec.subnets`

Read-Only:

- `cidr` (String) IP address range of the subnet in CIDR format. Must be a private network address (RFC1918). Authorized range for prefix length: /16 to /24
- `display_name` (String) Display name of the subnet. Format must follow `^[ a-zA-Z0-9-_.]{0,40}$`
- `service_endpoints` (Attributes List) Target specification of the Service Endpoints (see [below for nested schema](#nestedatt--target_spec--subnets--service_endpoints))
- `service_range` (Attributes) Defines a smaller subnet dedicated to the managed service IPs (see [below for nested schema](#nestedatt--target_spec--subnets--service_range))
- `vlan` (Number) Unique inner VLAN that allows subnets segregation. Authorized values: [2 - 4094] and `null` (untagged traffic)

<a id="nestedatt--target_spec--subnets--service_endpoints"></a>
### Nested Schema for `target_spec.subnets.service_endpoints`

Read-Only:

- `managed_service_urn` (String) IAM Resource URN of the managed service. Managed service Region must match vRack Services Region. Compatible managed service types are listed by /reference/compatibleManagedServiceType call


<a id="nestedatt--target_spec--subnets--service_range"></a>
### Nested Schema for `target_spec.subnets.service_range`

Read-Only:

- `cidr` (String) IP address range dedicated to the subnet's services in CIDR format. Must be a private network address (RFC1918). Must be a sub-network of the subnet. Authorized range for prefix length: /27 to /29
142 changes: 142 additions & 0 deletions docs/data-sources/vrackservicess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ovh_vrackservicess Data Source - terraform-provider-ovh"
subcategory: "Vrack Services"
description: |-
List all vRack Services
---

# ovh_vrackservicess (Data Source)

List all vRack Services



<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `vrackservicess` (Attributes Set) (see [below for nested schema](#nestedatt--vrackservicess))

<a id="nestedatt--vrackservicess"></a>
### Nested Schema for `vrackservicess`

Read-Only:

- `checksum` (String) Computed hash used to control concurrent modification requests. Here, it represents the current target specification value
- `created_at` (String) Date of the vRack Services delivery
- `current_state` (Attributes) Current configuration applied to the vRack Services (see [below for nested schema](#nestedatt--vrackservicess--current_state))
- `current_tasks` (Attributes List) Asynchronous operations ongoing on the vRack Services (see [below for nested schema](#nestedatt--vrackservicess--current_tasks))
- `iam` (Attributes) IAM resource metadata (see [below for nested schema](#nestedatt--vrackservicess--iam))
- `id` (String) Unique identifier
- `resource_status` (String) Reflects the readiness of the vRack Services. A new target specification request will be accepted only in `READY` status
- `target_spec` (Attributes) Last target specification of the vRack Services (see [below for nested schema](#nestedatt--vrackservicess--target_spec))
- `updated_at` (String) Date of the Last vRack Services update

<a id="nestedatt--vrackservicess--current_state"></a>
### Nested Schema for `vrackservicess.current_state`

Read-Only:

- `product_status` (String) Product status of the vRack Services
- `region` (String) Region of the vRack Services. List of compatible regions can be retrieved from /reference/region
- `subnets` (Attributes List) Subnets of the current vRack Services (see [below for nested schema](#nestedatt--vrackservicess--current_state--subnets))
- `vrack_id` (String) vRack associated to the vRack Services

<a id="nestedatt--vrackservicess--current_state--subnets"></a>
### Nested Schema for `vrackservicess.current_state.subnets`

Read-Only:

- `cidr` (String) IP address range of the subnet in CIDR format
- `display_name` (String) Display name of the subnet
- `service_endpoints` (Attributes List) Service endpoints of the subnet (see [below for nested schema](#nestedatt--vrackservicess--current_state--subnets--service_endpoints))
- `service_range` (Attributes) Defines a smaller subnet dedicated to the managed services IPs (see [below for nested schema](#nestedatt--vrackservicess--current_state--subnets--service_range))
- `vlan` (Number) Unique inner VLAN that allows subnets segregation

<a id="nestedatt--vrackservicess--current_state--subnets--service_endpoints"></a>
### Nested Schema for `vrackservicess.current_state.subnets.service_endpoints`

Read-Only:

- `endpoints` (Attributes List) Endpoints representing the IPs assigned to the managed services (see [below for nested schema](#nestedatt--vrackservicess--current_state--subnets--service_endpoints--endpoints))
- `managed_service_urn` (String) IAM Resource URN of the managed service. Compatible managed service types are listed by /reference/compatibleManagedServiceType call.

<a id="nestedatt--vrackservicess--current_state--subnets--service_endpoints--endpoints"></a>
### Nested Schema for `vrackservicess.current_state.subnets.service_endpoints.endpoints`

Read-Only:

- `description` (String) IP description defined in the managed service
- `ip` (String) IP address assigned by OVHcloud



<a id="nestedatt--vrackservicess--current_state--subnets--service_range"></a>
### Nested Schema for `vrackservicess.current_state.subnets.service_range`

Read-Only:

- `cidr` (String) CIDR dedicated to the subnet's services
- `remaining_ips` (Number) Number of remaining IPs in the service range
- `reserved_ips` (Number) Number of service range IPs reserved by OVHcloud
- `used_ips` (Number) Number of service range IPs assigned to the managed services




<a id="nestedatt--vrackservicess--current_tasks"></a>
### Nested Schema for `vrackservicess.current_tasks`

Read-Only:

- `id` (String) Identifier of the current task
- `link` (String) Link to the task details
- `status` (String) Current global status of the current task
- `type` (String) Type of the current task


<a id="nestedatt--vrackservicess--iam"></a>
### Nested Schema for `vrackservicess.iam`

Read-Only:

- `display_name` (String) Resource display name
- `id` (String) Unique identifier of the resource
- `state` (String) Resource state
- `urn` (String) Unique resource name used in policies


<a id="nestedatt--vrackservicess--target_spec"></a>
### Nested Schema for `vrackservicess.target_spec`

Read-Only:

- `subnets` (Attributes List) Target specification of the subnets. Maximum one subnet per vRack Services (see [below for nested schema](#nestedatt--vrackservicess--target_spec--subnets))

<a id="nestedatt--vrackservicess--target_spec--subnets"></a>
### Nested Schema for `vrackservicess.target_spec.subnets`

Read-Only:

- `cidr` (String) IP address range of the subnet in CIDR format. Must be a private network address (RFC1918). Authorized range for prefix length: /16 to /24
- `display_name` (String) Display name of the subnet. Format must follow `^[ a-zA-Z0-9-_.]{0,40}$`
- `service_endpoints` (Attributes List) Target specification of the Service Endpoints (see [below for nested schema](#nestedatt--vrackservicess--target_spec--subnets--service_endpoints))
- `service_range` (Attributes) Defines a smaller subnet dedicated to the managed service IPs (see [below for nested schema](#nestedatt--vrackservicess--target_spec--subnets--service_range))
- `vlan` (Number) Unique inner VLAN that allows subnets segregation. Authorized values: [2 - 4094] and `null` (untagged traffic)

<a id="nestedatt--vrackservicess--target_spec--subnets--service_endpoints"></a>
### Nested Schema for `vrackservicess.target_spec.subnets.service_endpoints`

Read-Only:

- `managed_service_urn` (String) IAM Resource URN of the managed service. Managed service Region must match vRack Services Region. Compatible managed service types are listed by /reference/compatibleManagedServiceType call


<a id="nestedatt--vrackservicess--target_spec--subnets--service_range"></a>
### Nested Schema for `vrackservicess.target_spec.subnets.service_range`

Read-Only:

- `cidr` (String) IP address range dedicated to the subnet's services in CIDR format. Must be a private network address (RFC1918). Must be a sub-network of the subnet. Authorized range for prefix length: /27 to /29
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ In order to run the Acceptance Tests for development, the following environment

* `OVH_TESTACC_ORDER_VRACK` - set this variable to "yes" will order vracks.

* `OVH_TESTACC_ORDER_VRACKSERVICES` - set this variable to "yes" will order and test Vrack Services.

* `OVH_TESTACC_VRACK_SERVICES_ID_TEST` - The ID of your vRack Service.

* `OVH_TESTACC_ORDER_CLOUDPROJECT` - set this variable to "yes" will order cloud projects.

* `OVH_TESTACC_ORDER_DOMAIN` - set this variable to "mydomain.ovh" to run tests for domain zones.
Expand Down
Loading