swagger: '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 WorkflowService API
version: 3.6.0
host: localhost:2746
schemes:
- http
- https
consumes:
- application/json
produces:
- application/json
security:
- BearerToken: []
tags:
- name: WorkflowService
paths:
/api/v1/stream/events/{namespace}:
get:
tags:
- WorkflowService
operationId: WorkflowService_WatchEvents
parameters:
- type: string
name: namespace
in: path
required: true
- type: string
description: 'A selector to restrict the list of returned objects by their labels.
Defaults to everything.
+optional.'
name: listOptions.labelSelector
in: query
- type: string
description: 'A selector to restrict the list of returned objects by their fields.
Defaults to everything.
+optional.'
name: listOptions.fieldSelector
in: query
- type: boolean
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
- 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
- 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: listOptions.resourceVersion
in: query
- 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
- type: string
format: int64
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
- 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
- type: string
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
- type: boolean
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
responses:
'200':
description: A successful response.(streaming responses)
schema:
type: object
title: Stream result of io.k8s.api.core.v1.Event
properties:
error:
$ref: '#/definitions/grpc.gateway.runtime.StreamError'
result:
$ref: '#/definitions/io.k8s.api.core.v1.Event'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v1/workflow-events/{namespace}:
get:
tags:
- WorkflowService
operationId: WorkflowService_WatchWorkflows
parameters:
- type: string
name: namespace
in: path
required: true
- type: string
description: 'A selector to restrict the list of returned objects by their labels.
Defaults to everything.
+optional.'
name: listOptions.labelSelector
in: query
- type: string
description: 'A selector to restrict the list of returned objects by their fields.
Defaults to everything.
+optional.'
name: listOptions.fieldSelector
in: query
- type: boolean
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
- 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
- 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: listOptions.resourceVersion
in: query
- 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
- type: string
format: int64
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
- 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
- type: string
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
- type: boolean
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
- type: string
name: fields
in: query
responses:
'200':
description: A successful response.(streaming responses)
schema:
type: object
title: Stream result of io.argoproj.workflow.v1alpha1.WorkflowWatchEvent
properties:
error:
$ref: '#/definitions/grpc.gateway.runtime.StreamError'
result:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.WorkflowWatchEvent'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v1/workflows/{namespace}:
get:
tags:
- WorkflowService
operationId: WorkflowService_ListWorkflows
parameters:
- type: string
name: namespace
in: path
required: true
- type: string
description: 'A selector to restrict the list of returned objects by their labels.
Defaults to everything.
+optional.'
name: listOptions.labelSelector
in: query
- type: string
description: 'A selector to restrict the list of returned objects by their fields.
Defaults to everything.
+optional.'
name: listOptions.fieldSelector
in: query
- type: boolean
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
- 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
- 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: listOptions.resourceVersion
in: query
- 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
- type: string
format: int64
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
- 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
- type: string
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
- type: boolean
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
- type: string
description: Fields to be included or excluded in the response. e.g. "items.spec,items.status.phase", "-items.status.nodes".
name: fields
in: query
- type: string
description: Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact.
name: nameFilter
in: query
- type: string
name: createdAfter
in: query
- type: string
name: finishedBefore
in: query
responses:
'200':
description: A successful response.
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.WorkflowList'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
post:
tags:
- WorkflowService
operationId: WorkflowService_CreateWorkflow
parameters:
- type: string
name: namespace
in: path
required: true
- name: body
in: body
required: true
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.WorkflowCreateRequest'
responses:
'200':
description: A successful response.
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.Workflow'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v1/workflows/{namespace}/lint:
post:
tags:
- WorkflowService
operationId: WorkflowService_LintWorkflow
parameters:
- type: string
name: namespace
in: path
required: true
- name: body
in: body
required: true
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.WorkflowLintRequest'
responses:
'200':
description: A successful response.
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.Workflow'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v1/workflows/{namespace}/submit:
post:
tags:
- WorkflowService
operationId: WorkflowService_SubmitWorkflow
parameters:
- type: string
name: namespace
in: path
required: true
- name: body
in: body
required: true
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.WorkflowSubmitRequest'
responses:
'200':
description: A successful response.
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.Workflow'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v1/workflows/{namespace}/{name}:
get:
tags:
- WorkflowService
operationId: WorkflowService_GetWorkflow
parameters:
- type: string
name: namespace
in: path
required: true
- type: string
name: name
in: path
required: true
- 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
- type: string
description: Fields to be included or excluded in the response. e.g. "spec,status.phase", "-status.nodes".
name: fields
in: query
- type: string
description: Optional UID to retrieve a specific workflow (useful for archived workflows with the same name).
name: uid
in: query
responses:
'200':
description: A successful response.
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.Workflow'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
delete:
tags:
- WorkflowService
operationId: WorkflowService_DeleteWorkflow
parameters:
- type: string
name: namespace
in: path
required: true
- type: string
name: name
in: path
required: true
- type: string
format: int64
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
- type: string
description: 'Specifies the target UID.
+optional.'
name: deleteOptions.preconditions.uid
in: query
- type: string
description: 'Specifies the target ResourceVersion
+optional.'
name: deleteOptions.preconditions.resourceVersion
in: query
- type: boolean
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
- type: string
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
- type: array
items:
type: string
collectionFormat: multi
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
- type: boolean
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
- type: boolean
name: force
in: query
responses:
'200':
description: A successful response.
schema:
$ref: '#/definitions/io.argoproj.workflow.v1alpha1.WorkflowDeleteResponse'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/grpc.gateway.runtime.Error'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/api/v1/workflows/{namespace}/{name}/log:
get:
tags:
- WorkflowService
operationId: WorkflowService_WorkflowLogs
parameters:
- type: string
name: namespace
in: path
required: true
- type: string
name: name
# --- truncated at 32 KB (378 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/argo-workflows/refs/heads/main/openapi/argo-workflows-workflowservice-api-openapi.yml