Skip to main content

local_seo_accounts

Creates, updates, deletes, gets or lists a local_seo_accounts resource.

Overview​

Namelocal_seo_accounts
TypeResource
Idovh.hosting_web.local_seo_accounts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerAccount id
task_idintegerRunning task associated to the account (wire: taskId)
creation_datestring (date-time)Date of creation of the account (wire: creationDate)
emailstringEmail address associated to the account
last_updatestring (date-time)Date of the last account's update (wire: lastUpdate)
statusstringCurrent status of the account (created, creating, deleting, updating)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameGet a local SEO account. Returns the email address, status, creation date and last update date of the local SEO account, and its running task.
listselectservice_nameemail, x_pagination_modeList local SEO accounts. Returns the IDs of the local SEO accounts of the hosting. Filter them by email.
loginexecid, serviceNameLog in to a local SEO account. Returns a single sign-on URL, with an authentication token, to log in to the local SEO account.

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"}})
idintegerAccount id
serviceNamestringThe internal name of your hosting
service_namestringThe internal name of your hosting (wire: serviceName)
emailstringFilter the value of email property (like)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a local SEO account. Returns the email address, status, creation date and last update date of the local SEO account, and its running task.

SELECT
id,
task_id,
creation_date,
email,
last_update,
status
FROM ovh.hosting_web.local_seo_accounts
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Log in to a local SEO account. Returns a single sign-on URL, with an authentication token, to log in to the local SEO account.

EXEC ovh.hosting_web.local_seo_accounts.login
@id='{{ id }}' --required,
@serviceName='{{ serviceName }}' --required
;