partners_region_partners
Creates, updates, deletes, gets or lists a partners_region_partners resource.
Overview​
| Name | partners_region_partners |
| Type | Resource |
| Id | ovh.cloud_ai.partners_region_partners |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string | Partner Id |
name | string | Partner Name |
contract | object | Partner contract with logged in user's tenant |
created_at | string (date-time) | Partner creation date (wire: createdAt) |
description | string | Partner Description |
Representation of a partner
| Name | Datatype | Description |
|---|---|---|
id | string | Partner Id |
name | string | Partner Name |
contract | object | Partner contract with logged in user's tenant |
created_at | string (date-time) | Partner creation date (wire: createdAt) |
description | string | Partner Description |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | partner_id, region, service_name | Get partner and contract | |
list | select | region, service_name | List partners and contracts |
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"}}) |
partner_id | string | Partner ID (wire: partnerId) |
region | string | Region |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
SELECT examples​
- get
- list
Get partner and contract
SELECT
id,
name,
contract,
created_at,
description
FROM ovh.cloud_ai.partners_region_partners
WHERE partner_id = '{{ partner_id }}' -- required
AND region = '{{ region }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;
List partners and contracts
SELECT
id,
name,
contract,
created_at,
description
FROM ovh.cloud_ai.partners_region_partners
WHERE region = '{{ region }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;