clc cpmap
CPMap commands are a group of CPMap operations.
Usage:
clc cpmap [command] [flags]
clc cpmap compare-and-set
Sets the value for the given key if it has the expected value.
Usage:
clc cpmap compare-and-set [key] [expected-value] [new-value] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Required |
Key of the map entry. |
N/A |
|
Required |
Value to set for the key. |
N/A |
|
Required |
Value to set for the key. |
N/A |
|
Optional |
Data type of the key. One of: |
string |
|
Optional |
Data type of the value. One of: |
string |
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|
clc cpmap get
Gets a value from the given CPMap.
Usage:
clc cpmap get [key] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the CPMap. |
|
|
Required |
Key of the CPMap entry. |
N/A |
|
Optional |
Data type of the key. One of: |
string |
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|
Example:
clc cpmap get -n yearbook -k i16 2012
clc cpmap set
Sets a value in the given CPMap.
Usage:
clc cpmap set [key] [value] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the CPMap. |
|
|
Required |
Key of the CPMap entry. |
N/A |
|
Required |
Value to set for the key. |
N/A |
|
Optional |
Data type of the key. One of: |
string |
|
Optional |
Data type of the value. One of: |
string |
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|
Example:
clc cpmap -n my-cpmap set -k string hello -v f32 19.94
clc cpmap put
Puts the given value in the given CPMap and returns the old value.
Usage:
clc cpmap put [key] [value] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the CPMap. |
|
|
Required |
Key of the CPMap entry. |
N/A |
|
Required |
Value to set for the key. |
N/A |
|
Optional |
Data type of the key. One of: |
string |
|
Optional |
Data type of the value. One of: |
string |
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|
Example:
clc cpmap -n my-cpmap put -k string hello -v f32 19.94
clc cpmap remove
Removes the value of a given key in a CPMap and returns the old value.
Usage:
clc cpmap remove [flags] [key]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Required |
Key of the map entry. |
N/A |
|
Optional |
Data type of the key. One of: |
string |
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|
Example:
clc cpmap remove --name my-cpmap --key-type string k1
k1
clc cpmap delete
Deletes the value of a given key in a CPMap.
Usage:
clc cpmap delete [flags] [key]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Required |
Key of the map entry. |
N/A |
|
Optional |
Data type of the key. One of: |
string |
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|
Example:
clc cpmap delete --name my-cpmap --key-type string k1
k1
clc cpmap destroy
Deletes the CPMap and all the data in it.
Usage:
clc cpmap destroy [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Optional |
Skip confirming the destroy operation. |
|
Global parameters
Parameter | Description | Default | ||
---|---|---|---|---|
|
Path to the configuration file in YAML format. |
The following locations are tried in order for the existence of
|
||
|
Set the output format
|
|
||
|
Set the log level, one of:
|
|
||
|
Set the log path. Use |
|
||
|
Prevent displaying unnecessary output. |
|
||
|
Enable output with more information. |
|
||
|
Timeout for operation to complete. The duration is a string in the form of
Underscore (_) character is ignored in the The following are a few of the valid DURATIONs:
|