Skip to content

[P2] Add TTL and Conflict Resolution Policy management #111

@sajeetharan

Description

@sajeetharan

Feature Request

Priority: P2 (Medium)

Description

CosmosDB Shell cannot view or set conflict resolution policy or Time-to-Live (TTL) settings for containers. These are important container configuration options that require leaving the shell to manage.

Proposed Behavior

TTL Management:

  • ttl show — Display current TTL configuration
  • ttl set <seconds> — Set default TTL for the container
  • ttl off — Disable TTL

Conflict Resolution:

  • conflict show — Display current conflict resolution policy
  • conflict set --mode <lastWriterWins|custom> — Set conflict resolution mode
  • conflict set --path <path> — Set the conflict resolution path

Example Usage

cd /MyDatabase/MyContainer
ttl show
ttl set 86400
conflict show
conflict set --mode lastWriterWins --path /_ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions