Garbage Collection

Overview

You can use the Garbage Collection feature to collect the garbage data that cannot be automatically cleansed are generated.

Inventory

Properties

Name Description Optional Valid Value Starting Version
uuid The UUID. For more information, see Resource Property. 0.6
name The name. For more information, see Resource Property. 0.6
createDate The creation date. For more information, see Resource Property. 0.6
lastOpDate The last operation date. For more information, see Resource Property. 0.6
managementNodeUuid 0.6
context 0.6
runnerClass 0.6
status 0.6
type The reserved field. 0.6
userTags The user tags. For more information, see CreateUserTag. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. Yes 0.6

Operations

TriggerGCJob

Triggers a garbage collection job. For example,
TriggerGCJob uuid=838bd276c5cf4320b8163de473f98a45

Parameters

Name Description Optional Valid Value Starting Version
uuid The resource UUID. 0.6
userTags The user tags. For more information, see CreateUserTag. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. Yes 0.6
timeout Yes

DeleteGCJob

Deletes a garbage collection job. For example,
DeleteGCJob uuid=838bd276c5cf4320b8163de473f98a45

Parameters

Name Description Optional Valid Value Starting Version
uuid The resource UUID. 0.6
userTags The user tags. For more information, see CreateUserTag. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. Yes 0.6
timeout Yes

QueryGCJob

Queries a garbage collection job. For example,
QueryGCJob uuid=1b92f2b5c8f14f599b41ce0553ecc0b7

Primitive Fields of Query

See Garbage Collection Job Inventory.

Tags

You can create a user tag on a garbage collection by using CreateUserTag resourceType=GarbageCollectorVO. For example,
CreateUserTag resourceType=GarbageCollectorVO tag=Test1 \
resourceUuid=3fd25b9e5b87423bba5612a45c1f5ecc
CLI Command Manual | 4.8.38 | ZStack Cloud · ZCF | ZStack Resource Center