github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/notifications/troubleshooting-commands.md (about)

     1  ## argocd admin notifications template get
     2  
     3  Prints information about configured templates
     4  
     5  ```
     6  argocd admin notifications template get [flags]
     7  ```
     8  
     9  ### Examples
    10  
    11  ```
    12  
    13  # prints all templates
    14  argocd admin notifications template get
    15  # print YAML formatted app-sync-succeeded template definition
    16  argocd admin notifications template get app-sync-succeeded -o=yaml
    17  
    18  ```
    19  
    20  ### Options
    21  
    22  ```
    23    -h, --help            help for get
    24    -o, --output string   Output format. One of:json|yaml|wide|name (default "wide")
    25  ```
    26  
    27  ### Options inherited from parent commands
    28  
    29  ```
    30        --argocd-repo-server string       Argo CD repo server address (default "argocd-repo-server:8081")
    31        --argocd-repo-server-plaintext    Use a plaintext client (non-TLS) to connect to repository server
    32        --argocd-repo-server-strict-tls   Perform strict validation of TLS certificates when connecting to repo server
    33        --as string                       Username to impersonate for the operation
    34        --as-group stringArray            Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
    35        --as-uid string                   UID to impersonate for the operation
    36        --certificate-authority string    Path to a cert file for the certificate authority
    37        --client-certificate string       Path to a client certificate file for TLS
    38        --client-key string               Path to a client key file for TLS
    39        --cluster string                  The name of the kubeconfig cluster to use
    40        --config-map string               argocd-notifications-cm.yaml file path
    41        --context string                  The name of the kubeconfig context to use
    42        --disable-compression             If true, opt-out of response compression for all requests to the server
    43        --insecure-skip-tls-verify        If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
    44        --kubeconfig string               Path to a kube config. Only required if out-of-cluster
    45    -n, --namespace string                If present, the namespace scope for this CLI request
    46        --password string                 Password for basic authentication to the API server
    47        --proxy-url string                If provided, this URL will be used to connect via proxy
    48        --request-timeout string          The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
    49        --secret string                   argocd-notifications-secret.yaml file path. Use empty secret if provided value is ':empty'
    50        --server string                   The address and port of the Kubernetes API server
    51        --tls-server-name string          If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
    52        --token string                    Bearer token for authentication to the API server
    53        --user string                     The name of the kubeconfig user to use
    54        --username string                 Username for basic authentication to the API server
    55  ```
    56  
    57  ## argocd admin notifications template notify
    58  
    59  Generates notification using the specified template and send it to specified recipients
    60  
    61  ```
    62  argocd admin notifications template notify NAME RESOURCE_NAME [flags]
    63  ```
    64  
    65  ### Examples
    66  
    67  ```
    68  
    69  # Trigger notification using in-cluster config map and secret
    70  argocd admin notifications template notify app-sync-succeeded guestbook --recipient slack:my-slack-channel
    71  
    72  # Render notification render generated notification in console
    73  argocd admin notifications template notify app-sync-succeeded guestbook
    74  
    75  ```
    76  
    77  ### Options
    78  
    79  ```
    80    -h, --help                    help for notify
    81        --recipient stringArray   List of recipients (default [console:stdout])
    82  ```
    83  
    84  ### Options inherited from parent commands
    85  
    86  ```
    87        --argocd-repo-server string       Argo CD repo server address (default "argocd-repo-server:8081")
    88        --argocd-repo-server-plaintext    Use a plaintext client (non-TLS) to connect to repository server
    89        --argocd-repo-server-strict-tls   Perform strict validation of TLS certificates when connecting to repo server
    90        --as string                       Username to impersonate for the operation
    91        --as-group stringArray            Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
    92        --as-uid string                   UID to impersonate for the operation
    93        --certificate-authority string    Path to a cert file for the certificate authority
    94        --client-certificate string       Path to a client certificate file for TLS
    95        --client-key string               Path to a client key file for TLS
    96        --cluster string                  The name of the kubeconfig cluster to use
    97        --config-map string               argocd-notifications-cm.yaml file path
    98        --context string                  The name of the kubeconfig context to use
    99        --disable-compression             If true, opt-out of response compression for all requests to the server
   100        --insecure-skip-tls-verify        If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
   101        --kubeconfig string               Path to a kube config. Only required if out-of-cluster
   102    -n, --namespace string                If present, the namespace scope for this CLI request
   103        --password string                 Password for basic authentication to the API server
   104        --proxy-url string                If provided, this URL will be used to connect via proxy
   105        --request-timeout string          The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
   106        --secret string                   argocd-notifications-secret.yaml file path. Use empty secret if provided value is ':empty'
   107        --server string                   The address and port of the Kubernetes API server
   108        --tls-server-name string          If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
   109        --token string                    Bearer token for authentication to the API server
   110        --user string                     The name of the kubeconfig user to use
   111        --username string                 Username for basic authentication to the API server
   112  ```
   113  
   114  ## argocd admin notifications trigger get
   115  
   116  Prints information about configured triggers
   117  
   118  ```
   119  argocd admin notifications trigger get [flags]
   120  ```
   121  
   122  ### Examples
   123  
   124  ```
   125  
   126  # prints all triggers
   127  argocd admin notifications trigger get
   128  # print YAML formatted on-sync-failed trigger definition
   129  argocd admin notifications trigger get on-sync-failed -o=yaml
   130  
   131  ```
   132  
   133  ### Options
   134  
   135  ```
   136    -h, --help            help for get
   137    -o, --output string   Output format. One of:json|yaml|wide|name (default "wide")
   138  ```
   139  
   140  ### Options inherited from parent commands
   141  
   142  ```
   143        --argocd-repo-server string       Argo CD repo server address (default "argocd-repo-server:8081")
   144        --argocd-repo-server-plaintext    Use a plaintext client (non-TLS) to connect to repository server
   145        --argocd-repo-server-strict-tls   Perform strict validation of TLS certificates when connecting to repo server
   146        --as string                       Username to impersonate for the operation
   147        --as-group stringArray            Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
   148        --as-uid string                   UID to impersonate for the operation
   149        --certificate-authority string    Path to a cert file for the certificate authority
   150        --client-certificate string       Path to a client certificate file for TLS
   151        --client-key string               Path to a client key file for TLS
   152        --cluster string                  The name of the kubeconfig cluster to use
   153        --config-map string               argocd-notifications-cm.yaml file path
   154        --context string                  The name of the kubeconfig context to use
   155        --disable-compression             If true, opt-out of response compression for all requests to the server
   156        --insecure-skip-tls-verify        If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
   157        --kubeconfig string               Path to a kube config. Only required if out-of-cluster
   158    -n, --namespace string                If present, the namespace scope for this CLI request
   159        --password string                 Password for basic authentication to the API server
   160        --proxy-url string                If provided, this URL will be used to connect via proxy
   161        --request-timeout string          The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
   162        --secret string                   argocd-notifications-secret.yaml file path. Use empty secret if provided value is ':empty'
   163        --server string                   The address and port of the Kubernetes API server
   164        --tls-server-name string          If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
   165        --token string                    Bearer token for authentication to the API server
   166        --user string                     The name of the kubeconfig user to use
   167        --username string                 Username for basic authentication to the API server
   168  ```
   169  
   170  ## argocd admin notifications trigger run
   171  
   172  Evaluates specified trigger condition and prints the result
   173  
   174  ```
   175  argocd admin notifications trigger run NAME RESOURCE_NAME [flags]
   176  ```
   177  
   178  ### Examples
   179  
   180  ```
   181  
   182  # Execute trigger configured in 'argocd-notification-cm' ConfigMap
   183  argocd admin notifications trigger run on-sync-status-unknown ./sample-app.yaml
   184  
   185  # Execute trigger using my-config-map.yaml instead of 'argocd-notifications-cm' ConfigMap
   186  argocd admin notifications trigger run on-sync-status-unknown ./sample-app.yaml \
   187      --config-map ./my-config-map.yaml
   188  ```
   189  
   190  ### Options
   191  
   192  ```
   193    -h, --help   help for run
   194  ```
   195  
   196  ### Options inherited from parent commands
   197  
   198  ```
   199        --argocd-repo-server string       Argo CD repo server address (default "argocd-repo-server:8081")
   200        --argocd-repo-server-plaintext    Use a plaintext client (non-TLS) to connect to repository server
   201        --argocd-repo-server-strict-tls   Perform strict validation of TLS certificates when connecting to repo server
   202        --as string                       Username to impersonate for the operation
   203        --as-group stringArray            Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
   204        --as-uid string                   UID to impersonate for the operation
   205        --certificate-authority string    Path to a cert file for the certificate authority
   206        --client-certificate string       Path to a client certificate file for TLS
   207        --client-key string               Path to a client key file for TLS
   208        --cluster string                  The name of the kubeconfig cluster to use
   209        --config-map string               argocd-notifications-cm.yaml file path
   210        --context string                  The name of the kubeconfig context to use
   211        --disable-compression             If true, opt-out of response compression for all requests to the server
   212        --insecure-skip-tls-verify        If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
   213        --kubeconfig string               Path to a kube config. Only required if out-of-cluster
   214    -n, --namespace string                If present, the namespace scope for this CLI request
   215        --password string                 Password for basic authentication to the API server
   216        --proxy-url string                If provided, this URL will be used to connect via proxy
   217        --request-timeout string          The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
   218        --secret string                   argocd-notifications-secret.yaml file path. Use empty secret if provided value is ':empty'
   219        --server string                   The address and port of the Kubernetes API server
   220        --tls-server-name string          If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
   221        --token string                    Bearer token for authentication to the API server
   222        --user string                     The name of the kubeconfig user to use
   223        --username string                 Username for basic authentication to the API server
   224  ```
   225