billing_group_services
Creates, updates, deletes, gets or lists a billing_group_services resource.
Overview​
| Name | billing_group_services |
| Type | Resource |
| Id | ovh.me.billing_group_services |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
group_id | integer | Billing group ID (wire: groupId) |
service_id | integer | Service ID (wire: serviceId) |
Missing description
| Name | Datatype | Description |
|---|---|---|
group_id | integer | Billing group ID (wire: groupId) |
service_id | integer | Service ID (wire: serviceId) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | group_id, service_id | Retrieve information about a billing group service (Beta version) | |
list | select | group_id | x_pagination_mode | Retrieve billing group service ID list (Beta version) |
create | insert | group_id, service_id | Associate a service to a billing group (Beta version) | |
delete | delete | group_id, service_id | Unlink a service from a billing group (Beta version) |
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"}}) |
group_id | integer | Group ID (wire: groupId) |
service_id | integer | Service ID (wire: serviceId) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Retrieve information about a billing group service (Beta version)
SELECT
group_id,
service_id
FROM ovh.me.billing_group_services
WHERE group_id = '{{ group_id }}' -- required
AND service_id = '{{ service_id }}' -- required
;
Retrieve billing group service ID list (Beta version)
SELECT
group_id,
service_id
FROM ovh.me.billing_group_services
WHERE group_id = '{{ group_id }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
INSERT examples​
- create
- Manifest
Associate a service to a billing group (Beta version)
INSERT INTO ovh.me.billing_group_services (
service_id,
group_id
)
SELECT
{{ service_id }} /* required */,
'{{ group_id }}'
RETURNING
group_id,
service_id
;
# Description fields are for documentation purposes
- name: billing_group_services
props:
- name: group_id
value: {{ group_id }}
description: Required parameter for the billing_group_services resource.
- name: service_id
value: {{ service_id }}
description: |
A service ID to associate
DELETE examples​
- delete
Unlink a service from a billing group (Beta version)
DELETE FROM ovh.me.billing_group_services
WHERE group_id = '{{ group_id }}' --required
AND service_id = '{{ service_id }}' --required
;