Skip to main content

diagrid appid resiliency set

Set Service Invocation API resiliency policies for an App ID

Description

Enable/Disable default resiliency policies used by the caller App ID when invoking target App IDs via the Service Invocation API

diagrid appid resiliency set <appid> [flags]

Examples


# Enable the default retry policy when invoking target App IDs
diagrid appid resiliency set my-appid --retry=true

# Disable the default timeout policy when invoking target App IDs
diagrid appid resiliency set my-appid --timeout=false

# Enable all default policies when invoking target App IDs
diagrid appid resiliency set my-appid --retry=true --circuit-break=true --timeout=true --wait

Options

  -p, --project string   Name of existing project
-o, --output string Output format, supported [table, yaml, json] (default "table")
--retry Enable/Disable App ID retry policy
--timeout Enable/Disable App ID timeout policy
--circuit-break Enable/Disable App ID circuit breaker policy
-w, --wait Wait for long-running resource update to finish
-h, --help help for set

Options inherited from parent commands

      --api-key string   Diagrid Cloud API key

SEE ALSO

  • diagrid appid resiliency - Manage default resiliency policies used by the App ID when calling the Service Invocation API