Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
description: Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argo-workflows.readthedocs.io/en/latest/
title: Argo Workflows ArchivedWorkflowService Sensor Service API
version: 3.6.0
servers:
- url: http://localhost:2746
- url: https://localhost:2746
security:
- BearerToken: []
tags:
- name: SensorService
paths:
/api/v1/sensors/{namespace}:
get:
tags:
- SensorService
operationId: SensorService_ListSensors
parameters:
- name: namespace
in: path
required: true
schema:
type: string
- description: 'A selector to restrict the list of returned objects by their labels.
Defaults to everything.
+optional.'
name: listOptions.labelSelector
in: query
schema:
type: string
- description: 'A selector to restrict the list of returned objects by their fields.
Defaults to everything.
+optional.'
name: listOptions.fieldSelector
in: query
schema:
type: string
- description: 'Watch for changes to the described resources and return them as a stream of
add, update, and remove notifications. Specify resourceVersion.
+optional.'
name: listOptions.watch
in: query
schema:
type: boolean
- description: 'allowWatchBookmarks requests watch events with type "BOOKMARK".
Servers that do not implement bookmarks may ignore this flag and
bookmarks are sent at the server''s discretion. Clients should not
assume bookmarks are returned at any specific interval, nor may they
assume the server will send any BOOKMARK event during a session.
If this is not a watch, this field is ignored.
+optional.'
name: listOptions.allowWatchBookmarks
in: query
schema:
type: boolean
- description: 'resourceVersion sets a constraint on what resource versions a request may be served from.
See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
details.
Defaults to unset
+optional'
name: listOptions.resourceVersion
in: query
schema:
type: string
- description: 'resourceVersionMatch determines how resourceVersion is applied to list calls.
It is highly recommended that resourceVersionMatch be set for list calls where
resourceVersion is set
See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
details.
Defaults to unset
+optional'
name: listOptions.resourceVersionMatch
in: query
schema:
type: string
- description: 'Timeout for the list/watch call.
This limits the duration of the call, regardless of any activity or inactivity.
+optional.'
name: listOptions.timeoutSeconds
in: query
schema:
type: string
format: int64
- description: 'limit is a maximum number of responses to return for a list call. If more items exist, the
server will set the `continue` field on the list metadata to a value that can be used with the
same initial query to retrieve the next set of results. Setting a limit may return fewer than
the requested amount of items (up to zero items) in the event all requested objects are
filtered out and clients should only use the presence of the continue field to determine whether
more results are available. Servers may choose not to support the limit argument and will return
all of the available results. If limit is specified and the continue field is empty, clients may
assume that no more results are available. This field is not supported if watch is true.
The server guarantees that the objects returned when using continue will be identical to issuing
a single list call without a limit - that is, no objects created, modified, or deleted after the
first request is issued will be included in any subsequent continued requests. This is sometimes
referred to as a consistent snapshot, and ensures that a client that is using limit to receive
smaller chunks of a very large result can ensure they see all possible objects. If objects are
updated during a chunked list the version of the object that was present at the time the first list
result was calculated is returned.'
name: listOptions.limit
in: query
schema:
type: string
format: int64
- description: 'The continue option should be set when retrieving more results from the server. Since this value is
server defined, clients may only use the continue value from a previous query result with identical
query parameters (except for the value of continue) and the server may reject a continue value it
does not recognize. If the specified continue value is no longer valid whether due to expiration
(generally five to fifteen minutes) or a configuration change on the server, the server will
respond with a 410 ResourceExpired error together with a continue token. If the client needs a
consistent list, it must restart their list without the continue field. Otherwise, the client may
send another list request with the token received with the 410 error, the server will respond with
a list starting from the next key, but from the latest snapshot, which is inconsistent from the
previous list results - objects that are created, modified, or deleted after the first list request
will be included in the response, as long as their keys are after the "next key".
This field is not supported when watch is true. Clients may start a watch from the last
resourceVersion value returned by the server and not miss any modifications.'
name: listOptions.continue
in: query
schema:
type: string
- description: "`sendInitialEvents=true` may be set together with `watch=true`.\nIn that case, the watch stream will begin with synthetic events to\nproduce the current state of objects in the collection. Once all such\nevents have been sent, a synthetic \"Bookmark\" event will be sent.\nThe bookmark will report the ResourceVersion (RV) corresponding to the\nset of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation.\nAfterwards, the watch stream will proceed as usual, sending watch events\ncorresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch`\noption to also be set. The semantic of the watch request is as following:\n- `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward\ncompatibility reasons) and to false otherwise.\n+optional"
name: listOptions.sendInitialEvents
in: query
schema:
type: boolean
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorList'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
post:
tags:
- SensorService
operationId: SensorService_CreateSensor
parameters:
- name: namespace
in: path
required: true
schema:
type: string
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/sensor.CreateSensorRequest'
required: true
/api/v1/sensors/{namespace}/{name}:
get:
tags:
- SensorService
operationId: SensorService_GetSensor
parameters:
- name: namespace
in: path
required: true
schema:
type: string
- name: name
in: path
required: true
schema:
type: string
- description: 'resourceVersion sets a constraint on what resource versions a request may be served from.
See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
details.
Defaults to unset
+optional'
name: getOptions.resourceVersion
in: query
schema:
type: string
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
put:
tags:
- SensorService
operationId: SensorService_UpdateSensor
parameters:
- name: namespace
in: path
required: true
schema:
type: string
- name: name
in: path
required: true
schema:
type: string
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/sensor.UpdateSensorRequest'
required: true
delete:
tags:
- SensorService
operationId: SensorService_DeleteSensor
parameters:
- name: namespace
in: path
required: true
schema:
type: string
- name: name
in: path
required: true
schema:
type: string
- description: 'The duration in seconds before the object should be deleted. Value must be non-negative integer.
The value zero indicates delete immediately. If this value is nil, the default grace period for the
specified type will be used.
Defaults to a per object value if not specified. zero means delete immediately.
+optional.'
name: deleteOptions.gracePeriodSeconds
in: query
schema:
type: string
format: int64
- description: 'Specifies the target UID.
+optional.'
name: deleteOptions.preconditions.uid
in: query
schema:
type: string
- description: 'Specifies the target ResourceVersion
+optional.'
name: deleteOptions.preconditions.resourceVersion
in: query
schema:
type: string
- description: 'Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
Should the dependent objects be orphaned. If true/false, the "orphan"
finalizer will be added to/removed from the object''s finalizers list.
Either this field or PropagationPolicy may be set, but not both.
+optional.'
name: deleteOptions.orphanDependents
in: query
schema:
type: boolean
- description: 'Whether and how garbage collection will be performed.
Either this field or OrphanDependents may be set, but not both.
The default policy is decided by the existing finalizer set in the
metadata.finalizers and the resource-specific default policy.
Acceptable values are: ''Orphan'' - orphan the dependents; ''Background'' -
allow the garbage collector to delete the dependents in the background;
''Foreground'' - a cascading policy that deletes all dependents in the
foreground.
+optional.'
name: deleteOptions.propagationPolicy
in: query
schema:
type: string
- description: 'When present, indicates that modifications should not be
persisted. An invalid or unrecognized dryRun directive will
result in an error response and no further processing of the
request. Valid values are:
- All: all dry run stages will be processed
+optional
+listType=atomic.'
name: deleteOptions.dryRun
in: query
style: form
explode: true
schema:
type: array
items:
type: string
- description: 'if set to true, it will trigger an unsafe deletion of the resource in
case the normal deletion flow fails with a corrupt object error.
A resource is considered corrupt if it can not be retrieved from
the underlying storage successfully because of a) its data can
not be transformed e.g. decryption failure, or b) it fails
to decode into an object.
NOTE: unsafe deletion ignores finalizer constraints, skips
precondition checks, and removes the object from the storage.
WARNING: This may potentially break the cluster if the workload
associated with the resource being unsafe-deleted relies on normal
deletion flow. Use only if you REALLY know what you are doing.
The default value is false, and the user must opt in to enable it
+optional.'
name: deleteOptions.ignoreStoreReadErrorWithClusterBreakingPotential
in: query
schema:
type: boolean
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/sensor.DeleteSensorResponse'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v1/stream/sensors/{namespace}:
get:
tags:
- SensorService
operationId: SensorService_WatchSensors
parameters:
- name: namespace
in: path
required: true
schema:
type: string
- description: 'A selector to restrict the list of returned objects by their labels.
Defaults to everything.
+optional.'
name: listOptions.labelSelector
in: query
schema:
type: string
- description: 'A selector to restrict the list of returned objects by their fields.
Defaults to everything.
+optional.'
name: listOptions.fieldSelector
in: query
schema:
type: string
- description: 'Watch for changes to the described resources and return them as a stream of
add, update, and remove notifications. Specify resourceVersion.
+optional.'
name: listOptions.watch
in: query
schema:
type: boolean
- description: 'allowWatchBookmarks requests watch events with type "BOOKMARK".
Servers that do not implement bookmarks may ignore this flag and
bookmarks are sent at the server''s discretion. Clients should not
assume bookmarks are returned at any specific interval, nor may they
assume the server will send any BOOKMARK event during a session.
If this is not a watch, this field is ignored.
+optional.'
name: listOptions.allowWatchBookmarks
in: query
schema:
type: boolean
- description: 'resourceVersion sets a constraint on what resource versions a request may be served from.
See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
details.
Defaults to unset
+optional'
name: listOptions.resourceVersion
in: query
schema:
type: string
- description: 'resourceVersionMatch determines how resourceVersion is applied to list calls.
It is highly recommended that resourceVersionMatch be set for list calls where
resourceVersion is set
See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
details.
Defaults to unset
+optional'
name: listOptions.resourceVersionMatch
in: query
schema:
type: string
- description: 'Timeout for the list/watch call.
This limits the duration of the call, regardless of any activity or inactivity.
+optional.'
name: listOptions.timeoutSeconds
in: query
schema:
type: string
format: int64
- description: 'limit is a maximum number of responses to return for a list call. If more items exist, the
server will set the `continue` field on the list metadata to a value that can be used with the
same initial query to retrieve the next set of results. Setting a limit may return fewer than
the requested amount of items (up to zero items) in the event all requested objects are
filtered out and clients should only use the presence of the continue field to determine whether
more results are available. Servers may choose not to support the limit argument and will return
all of the available results. If limit is specified and the continue field is empty, clients may
assume that no more results are available. This field is not supported if watch is true.
The server guarantees that the objects returned when using continue will be identical to issuing
a single list call without a limit - that is, no objects created, modified, or deleted after the
first request is issued will be included in any subsequent continued requests. This is sometimes
referred to as a consistent snapshot, and ensures that a client that is using limit to receive
smaller chunks of a very large result can ensure they see all possible objects. If objects are
updated during a chunked list the version of the object that was present at the time the first list
result was calculated is returned.'
name: listOptions.limit
in: query
schema:
type: string
format: int64
- description: 'The continue option should be set when retrieving more results from the server. Since this value is
server defined, clients may only use the continue value from a previous query result with identical
query parameters (except for the value of continue) and the server may reject a continue value it
does not recognize. If the specified continue value is no longer valid whether due to expiration
(generally five to fifteen minutes) or a configuration change on the server, the server will
respond with a 410 ResourceExpired error together with a continue token. If the client needs a
consistent list, it must restart their list without the continue field. Otherwise, the client may
send another list request with the token received with the 410 error, the server will respond with
a list starting from the next key, but from the latest snapshot, which is inconsistent from the
previous list results - objects that are created, modified, or deleted after the first list request
will be included in the response, as long as their keys are after the "next key".
This field is not supported when watch is true. Clients may start a watch from the last
resourceVersion value returned by the server and not miss any modifications.'
name: listOptions.continue
in: query
schema:
type: string
- description: "`sendInitialEvents=true` may be set together with `watch=true`.\nIn that case, the watch stream will begin with synthetic events to\nproduce the current state of objects in the collection. Once all such\nevents have been sent, a synthetic \"Bookmark\" event will be sent.\nThe bookmark will report the ResourceVersion (RV) corresponding to the\nset of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation.\nAfterwards, the watch stream will proceed as usual, sending watch events\ncorresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch`\noption to also be set. The semantic of the watch request is as following:\n- `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward\ncompatibility reasons) and to false otherwise.\n+optional"
name: listOptions.sendInitialEvents
in: query
schema:
type: boolean
responses:
'200':
description: A successful response.(streaming responses)
content:
application/json:
schema:
type: object
title: Stream result of sensor.SensorWatchEvent
properties:
error:
$ref: '#/components/schemas/grpc.gateway.runtime.StreamError'
result:
$ref: '#/components/schemas/sensor.SensorWatchEvent'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v1/stream/sensors/{namespace}/logs:
get:
tags:
- SensorService
operationId: SensorService_SensorsLogs
parameters:
- name: namespace
in: path
required: true
schema:
type: string
- description: optional - only return entries for this sensor name.
name: name
in: query
schema:
type: string
- description: optional - only return entries for this trigger.
name: triggerName
in: query
schema:
type: string
- description: option - only return entries where `msg` contains this regular expressions.
name: grep
in: query
schema:
type: string
- description: 'The container for which to stream logs. Defaults to only container if there is one container in the pod.
+optional.'
name: podLogOptions.container
in: query
schema:
type: string
- description: 'Follow the log stream of the pod. Defaults to false.
+optional.'
name: podLogOptions.follow
in: query
schema:
type: boolean
- description: 'Return previous terminated container logs. Defaults to false.
+optional.'
name: podLogOptions.previous
in: query
schema:
type: boolean
- description: 'A relative time in seconds before the current time from which to show logs. If this value
precedes the time a pod was started, only logs since the pod start will be returned.
If this value is in the future, no logs will be returned.
Only one of sinceSeconds or sinceTime may be specified.
+optional.'
name: podLogOptions.sinceSeconds
in: query
schema:
type: string
format: int64
- description: 'Represents seconds of UTC time since Unix epoch
1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
9999-12-31T23:59:59Z inclusive.'
name: podLogOptions.sinceTime.seconds
in: query
schema:
type: string
format: int64
- description: 'Non-negative fractions of a second at nanosecond resolution. Negative
second values with fractions must still have non-negative nanos values
that count forward in time. Must be from 0 to 999,999,999
inclusive. This field may be limited in precision depending on context.'
name: podLogOptions.sinceTime.nanos
in: query
schema:
type: integer
format: int32
- description: 'If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
of log output. Defaults to false.
+optional.'
name: podLogOptions.timestamps
in: query
schema:
type: boolean
- description: 'If set, the number of lines from the end of the logs to show. If not specified,
logs are shown from the creation of the container or sinceSeconds or sinceTime.
Note that when "TailLines" is specified, "Stream" can only be set to nil or "All".
+optional.'
name: podLogOptions.tailLines
in: query
schema:
type: string
format: int64
- description: 'If set, the number of bytes to read from the server before terminating the
log output. This may not display a complete final line of logging, and may return
slightly more or slightly less than the specified limit.
+optional.'
name: podLogOptions.limitBytes
in: query
schema:
type: string
format: int64
- description: 'insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver
and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
kubelet. If the kubelet is configured to verify the apiserver''s TLS credentials, it does not mean the
connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
the actual log data coming from the real kubelet).
+optional.'
name: podLogOptions.insecureSkipTLSVerifyBackend
in: query
schema:
type: boolean
- description: 'Specify which container log stream to return to the client.
Acceptable values are "All", "Stdout" and "Stderr". If not specified, "All" is used, and both stdout and stderr
are returned interleaved.
Note that when "TailLines" is specified, "Stream" can only be set to nil or "All".
+featureGate=PodLogsQuerySplitStreams
+optional.'
name: podLogOptions.stream
in: query
schema:
type: string
responses:
'200':
description: A successful response.(streaming responses)
content:
application/json:
schema:
type: object
title: Stream result of sensor.LogEntry
properties:
error:
$ref: '#/components/schemas/grpc.gateway.runtime.StreamError'
result:
$ref: '#/components/schemas/sensor.LogEntry'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
components:
schemas:
github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitRemoteConfig:
type: object
title: GitRemoteConfig contains the configuration of a Git remote
properties:
name:
description: Name of the remote to fetch from.
type: string
urls:
description: 'URLs the URLs of a remote repository. It must be non-empty. Fetch will
always use the first URL, while push will use all of them.'
type: array
items:
type: string
io.k8s.api.core.v1.SeccompProfile:
description: SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
type: object
required:
- type
properties:
localhostProfile:
description: localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.
type: string
type:
description: 'type indicates which kind of seccomp profile will be applied. Valid options are:
Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.'
type: string
x-kubernetes-unions:
- discriminator: type
fields-to-discriminateBy:
localhostProfile: LocalhostProfile
github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter:
type: object
title: TriggerParameter indicates a passed parameter to a service template
properties:
dest:
description: 'Dest is the JSONPath of a resource key.
A path is a series of keys separated by a dot. The colon character can be escaped with ''.''
The -1 key can be used to append a value to an existing array.
See https://github.com/tidwall/sjson#path-syntax for more information about how this is used.'
type: string
operation:
description: 'Operation is what to do with the existing value at Dest, whether to
''prepend'', ''overwrite'', or ''append'' it.'
type: string
src:
title: Src contains a source reference to the value of the parameter from a dependency
$ref: '#/components/schemas/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Trigg
# --- truncated at 32 KB (243 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/argo-workflows/refs/heads/main/openapi/argo-workflows-sensorservice-api-openapi.yml