# Key-Values
URL: https://docs.datarobot.com/en/docs/api/reference/sdk/key_values.html

# Key-Values

### class datarobot.models.key_values.KeyValue

A DataRobot Key-Value.

Added in version v3.4.

- Variables:

#### classmethod get(key_value_id)

Get Key-Value by id.

Added in version v3.4.

- Parameters: key_value_id ( str ) – ID of the Key-Value
- Returns: retrieved Key-Value
- Return type: KeyValue
- Raises:

#### classmethod list(entity_id, entity_type)

List Key-Values.

Added in version v3.4.

- Parameters:
- Returns: a list of Key-Values
- Return type: List[KeyValue]
- Raises:

#### classmethod find(entity_id, entity_type, name)

Find Key-Value by name.

Added in version v3.4.

- Parameters:
- Returns: a list of Key-Values
- Return type: List[KeyValue]
- Raises:

#### classmethod create(entity_id, entity_type, name, category, value_type, value=None, description=None)

Create a Key-Value.

Added in version v3.4.

- Parameters:
- Returns: created Key-Value
- Return type: KeyValue
- Raises:

#### update(entity_id=None, entity_type=None, name=None, category=None, value_type=None, value=None, description=None, comment=None)

Update Key-Value.

Added in version v3.4.

- Parameters:
- Raises:
- Return type: None

#### refresh()

Update Key-Value with the latest data from server.

Added in version v3.4.

- Raises:
- Return type: None

#### delete()

Delete Key-Value.

Added in version v3.4.

- Raises:
- Return type: None

#### get_value()

Get a value of Key-Value.

Added in version v3.4.

- Returns: value depending on the value type
- Return type: Union[str , float , boolean]

### class datarobot.enums.KeyValueCategory

Key-Value category

### class datarobot.enums.KeyValueEntityType

Key-Value entity type

### class datarobot.enums.KeyValueType

Key-Value type

---
