instances
Creates, updates, deletes, gets or lists a instances
resource.
Overview
Name | instances |
Type | Resource |
Id | google.bigtableadmin.instances |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The unique name of the instance. Values are of the form projects/{project}/instances/a-z+[a-z0-9] . |
createTime | string | Output only. A commit timestamp representing when this Instance was created. For instances created before this field was added (August 2021), this value is seconds: 0, nanos: 1 . |
displayName | string | Required. The descriptive name for this instance as it appears in UIs. Can be changed at any time, but should be kept globally unique to avoid confusion. |
labels | object | Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. They can be used to filter resources and aggregate metrics. Label keys must be between 1 and 63 characters long and must conform to the regular expression: \p{Ll}\p{Lo}{0,62} . Label values must be between 0 and 63 characters long and must conform to the regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} . No more than 64 labels can be associated with a given resource. Keys and values must both be under 128 bytes. |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
state | string | Output only. The current state of the instance. |
type | string | The type of the instance. Defaults to PRODUCTION . |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | instancesId, projectsId | Gets information about an instance. |
list | SELECT | projectsId | Lists information about instances in a project. |
create | INSERT | projectsId | Create an instance within a project. Note that exactly one of Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled. |
delete | DELETE | instancesId, projectsId | Delete an instance from a project. |
update | REPLACE | instancesId, projectsId | Updates an instance within a project. This method updates only the display name and type for an Instance. To update other Instance properties, such as labels, use PartialUpdateInstance. |
partial_update_instance | EXEC | instancesId, projectsId | Partially updates an instance within a project. This method can modify all fields of an Instance and is the preferred way to update an Instance. |
SELECT
examples
Lists information about instances in a project.
SELECT
name,
createTime,
displayName,
labels,
satisfiesPzi,
satisfiesPzs,
state,
type
FROM google.bigtableadmin.instances
WHERE projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new instances
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.bigtableadmin.instances (
projectsId,
parent,
instanceId,
instance,
clusters
)
SELECT
'{{ projectsId }}',
'{{ parent }}',
'{{ instanceId }}',
'{{ instance }}',
'{{ clusters }}'
;
- name: your_resource_model_name
props:
- name: parent
value: string
- name: instanceId
value: string
- name: instance
value:
- name: name
value: string
- name: displayName
value: string
- name: state
value: string
- name: type
value: string
- name: labels
value: object
- name: createTime
value: string
- name: satisfiesPzs
value: boolean
- name: satisfiesPzi
value: boolean
- name: clusters
value: object
REPLACE
example
Replaces all fields in the specified instances
resource.
/*+ update */
REPLACE google.bigtableadmin.instances
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
type = '{{ type }}',
labels = '{{ labels }}'
WHERE
instancesId = '{{ instancesId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified instances
resource.
/*+ delete */
DELETE FROM google.bigtableadmin.instances
WHERE instancesId = '{{ instancesId }}'
AND projectsId = '{{ projectsId }}';