deployments
Creates, updates, deletes, gets or lists a deployments
resource.
Overview
Name | deployments |
Type | Resource |
Id | google.sasportal.deployments |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. Resource name. |
displayName | string | The deployment's display name. |
frns | array | Output only. The FCC Registration Numbers (FRNs) copied from its direct parent. |
sasUserIds | array | User ID used by the devices belonging to this deployment. Each deployment should be associated with one unique user ID. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
customers_deployments_get | SELECT | customersId, deploymentsId | Returns a requested deployment. |
customers_deployments_list | SELECT | customersId | Lists deployments. |
customers_nodes_deployments_list | SELECT | customersId, nodesId | Lists deployments. |
deployments_get | SELECT | deploymentsId | Returns a requested deployment. |
nodes_deployments_get | SELECT | deploymentsId, nodesId | Returns a requested deployment. |
nodes_deployments_list | SELECT | nodesId | Lists deployments. |
nodes_nodes_deployments_list | SELECT | nodesId, nodesId1 | Lists deployments. |
customers_deployments_create | INSERT | customersId | Creates a new deployment. |
customers_nodes_deployments_create | INSERT | customersId, nodesId | Creates a new deployment. |
nodes_nodes_deployments_create | INSERT | nodesId, nodesId1 | Creates a new deployment. |
customers_deployments_delete | DELETE | customersId, deploymentsId | Deletes a deployment. |
nodes_deployments_delete | DELETE | deploymentsId, nodesId | Deletes a deployment. |
customers_deployments_patch | UPDATE | customersId, deploymentsId | Updates an existing deployment. |
nodes_deployments_patch | UPDATE | deploymentsId, nodesId | Updates an existing deployment. |
customers_deployments_move | EXEC | customersId, deploymentsId | Moves a deployment under another node or customer. |
nodes_deployments_move | EXEC | deploymentsId, nodesId | Moves a deployment under another node or customer. |
SELECT
examples
Lists deployments.
SELECT
name,
displayName,
frns,
sasUserIds
FROM google.sasportal.deployments
WHERE nodesId = '{{ nodesId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new deployments
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.sasportal.deployments (
customersId,
displayName,
sasUserIds
)
SELECT
'{{ customersId }}',
'{{ displayName }}',
'{{ sasUserIds }}'
;
- name: your_resource_model_name
props:
- name: frns
value:
- string
- name: name
value: string
- name: displayName
value: string
- name: sasUserIds
value:
- string
UPDATE
example
Updates a deployments
resource.
/*+ update */
UPDATE google.sasportal.deployments
SET
displayName = '{{ displayName }}',
sasUserIds = '{{ sasUserIds }}'
WHERE
deploymentsId = '{{ deploymentsId }}'
AND nodesId = '{{ nodesId }}';
DELETE
example
Deletes the specified deployments
resource.
/*+ delete */
DELETE FROM google.sasportal.deployments
WHERE deploymentsId = '{{ deploymentsId }}'
AND nodesId = '{{ nodesId }}';