queued_resources
Creates, updates, deletes, gets or lists a queued_resources
resource.
Overview
Name | queued_resources |
Type | Resource |
Id | google.tpu.queued_resources |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. Immutable. The name of the QueuedResource. |
createTime | string | Output only. The time when the QueuedResource was created. |
guaranteed | object | Guaranteed tier definition. |
queueingPolicy | object | Defines the policy of the QueuedRequest. |
reservationName | string | Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation} |
spot | object | Spot tier definition. |
state | object | QueuedResourceState defines the details of the QueuedResource request. |
tpu | object | Details of the TPU resource(s) being requested. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, queuedResourcesId | Gets details of a queued resource. |
list | SELECT | locationsId, projectsId | Lists queued resources. |
create | INSERT | locationsId, projectsId | Creates a QueuedResource TPU instance. |
delete | DELETE | locationsId, projectsId, queuedResourcesId | Deletes a QueuedResource TPU instance. |
reset | EXEC | locationsId, projectsId, queuedResourcesId | Resets a QueuedResource TPU instance |
SELECT
examples
Lists queued resources.
SELECT
name,
createTime,
guaranteed,
queueingPolicy,
reservationName,
spot,
state,
tpu
FROM google.tpu.queued_resources
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new queued_resources
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.tpu.queued_resources (
locationsId,
projectsId,
tpu,
spot,
guaranteed,
queueingPolicy,
reservationName
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ tpu }}',
'{{ spot }}',
'{{ guaranteed }}',
'{{ queueingPolicy }}',
'{{ reservationName }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: tpu
value:
- name: nodeSpec
value:
- - name: parent
value: string
- name: nodeId
value: string
- name: multisliceParams
value:
- name: nodeCount
value: integer
- name: nodeIdPrefix
value: string
- name: node
value:
- name: name
value: string
- name: description
value: string
- name: acceleratorType
value: string
- name: state
value: string
- name: healthDescription
value: string
- name: runtimeVersion
value: string
- name: networkConfig
value:
- name: network
value: string
- name: subnetwork
value: string
- name: enableExternalIps
value: boolean
- name: canIpForward
value: boolean
- name: queueCount
value: integer
- name: cidrBlock
value: string
- name: serviceAccount
value:
- name: email
value: string
- name: scope
value:
- string
- name: createTime
value: string
- name: schedulingConfig
value:
- name: preemptible
value: boolean
- name: reserved
value: boolean
- name: spot
value: boolean
- name: networkEndpoints
value:
- - name: ipAddress
value: string
- name: port
value: integer
- name: accessConfig
value:
- name: externalIp
value: string
- name: health
value: string
- name: labels
value: object
- name: metadata
value: object
- name: tags
value:
- string
- name: id
value: string
- name: dataDisks
value:
- - name: sourceDisk
value: string
- name: mode
value: string
- name: apiVersion
value: string
- name: symptoms
value:
- - name: createTime
value: string
- name: symptomType
value: string
- name: details
value: string
- name: workerId
value: string
- name: shieldedInstanceConfig
value:
- name: enableSecureBoot
value: boolean
- name: acceleratorConfig
value:
- name: type
value: string
- name: topology
value: string
- name: queuedResource
value: string
- name: multisliceNode
value: boolean
- name: spot
value: []
- name: guaranteed
value:
- name: minDuration
value: string
- name: queueingPolicy
value:
- name: validUntilDuration
value: string
- name: validUntilTime
value: string
- name: validAfterDuration
value: string
- name: validAfterTime
value: string
- name: validInterval
value:
- name: startTime
value: string
- name: endTime
value: string
- name: state
value:
- name: state
value: string
- name: creatingData
value: []
- name: acceptedData
value: []
- name: provisioningData
value: []
- name: failedData
value:
- name: error
value:
- name: code
value: integer
- name: message
value: string
- name: details
value:
- object
- name: deletingData
value: []
- name: activeData
value: []
- name: suspendingData
value: []
- name: suspendedData
value: []
- name: stateInitiator
value: string
- name: reservationName
value: string
DELETE
example
Deletes the specified queued_resources
resource.
/*+ delete */
DELETE FROM google.tpu.queued_resources
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND queuedResourcesId = '{{ queuedResourcesId }}';