envgroups
Creates, updates, deletes, gets or lists a envgroups
resource.
Overview
Name | envgroups |
Type | Resource |
Id | google.apigee.envgroups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | ID of the environment group. |
createdAt | string | Output only. The time at which the environment group was created as milliseconds since epoch. |
hostnames | array | Required. Host names for this environment group. |
lastModifiedAt | string | Output only. The time at which the environment group was last updated as milliseconds since epoch. |
state | string | Output only. State of the environment group. Values other than ACTIVE means the resource is not ready to use. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_envgroups_get | SELECT | envgroupsId, organizationsId | Gets an environment group. |
organizations_envgroups_list | SELECT | organizationsId | Lists all environment groups. |
organizations_envgroups_create | INSERT | organizationsId | Creates a new environment group. |
organizations_envgroups_delete | DELETE | envgroupsId, organizationsId | Deletes an environment group. |
organizations_envgroups_patch | UPDATE | envgroupsId, organizationsId | Updates an environment group. |
SELECT
examples
Lists all environment groups.
SELECT
name,
createdAt,
hostnames,
lastModifiedAt,
state
FROM google.apigee.envgroups
WHERE organizationsId = '{{ organizationsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new envgroups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apigee.envgroups (
organizationsId,
name,
hostnames
)
SELECT
'{{ organizationsId }}',
'{{ name }}',
'{{ hostnames }}'
;
- name: your_resource_model_name
props:
- name: lastModifiedAt
value: string
- name: name
value: string
- name: hostnames
value:
- string
- name: createdAt
value: string
- name: state
value: string
UPDATE
example
Updates a envgroups
resource.
/*+ update */
UPDATE google.apigee.envgroups
SET
name = '{{ name }}',
hostnames = '{{ hostnames }}'
WHERE
envgroupsId = '{{ envgroupsId }}'
AND organizationsId = '{{ organizationsId }}';
DELETE
example
Deletes the specified envgroups
resource.
/*+ delete */
DELETE FROM google.apigee.envgroups
WHERE envgroupsId = '{{ envgroupsId }}'
AND organizationsId = '{{ organizationsId }}';