Red Hat Ansible Automation Platform Credential Types API
The Credential Types API from Red Hat Ansible Automation Platform — 8 operation(s) for credential types.
The Credential Types API from Red Hat Ansible Automation Platform — 8 operation(s) for credential types.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/red-hat-ansible-automation-platform:red-hat-ansible-automation-platform-credential-types-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: AWX Credential Types API
version: v2
description: AWX API Documentation
contact:
email: ansible-community@redhat.com
license:
name: Apache License
tags:
- name: Credential Types
paths:
/api/v2/credential_types/:
get:
operationId: credential_types_list
parameters:
- in: query
name: order
schema:
type: string
description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
- in: query
name: order_by
schema:
type: string
description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
- in: query
name: role_level
schema:
type: string
description: Filter by role level for RBAC
- name: search
required: false
in: query
description: A search term.
schema:
type: string
- in: query
name: type
schema:
type: string
description: Filter by object type. Supports comma-separated values for multiple types.
tags:
- Credential Types
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedCredentialTypeList'
description: ''
x-ai-description: Returns a paginated list of all credential types (machine, vault, cloud, etc.).
summary: Credential types list
x-summary-source: derived
post:
operationId: credential_types_create
tags:
- Credential Types
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialTypeRequest'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialType'
description: ''
x-ai-description: Create a new custom credential type
summary: Credential types create
x-summary-source: derived
/api/v2/credential_types/{id}/:
get:
operationId: credential_types_retrieve
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
tags:
- Credential Types
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialType'
description: ''
x-ai-description: Retrieve a credential type
summary: Credential types retrieve
x-summary-source: derived
put:
operationId: credential_types_update
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
tags:
- Credential Types
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialTypeRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialType'
description: ''
x-ai-description: Update a custom credential type.
summary: Credential types update
x-summary-source: derived
patch:
operationId: credential_types_partial_update
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
tags:
- Credential Types
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedCredentialTypeRequest'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialType'
description: ''
x-ai-description: Update a custom credential type.
summary: Credential types partial update
x-summary-source: derived
delete:
operationId: credential_types_destroy
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
tags:
- Credential Types
responses:
'204':
description: No response body
x-ai-description: Delete a custom credential type. Cannot delete managed types or types currently in use.
summary: Credential types destroy
x-summary-source: derived
/api/v2/credential_types/{id}/activity_stream/:
get:
operationId: credential_types_activity_stream_list
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
- in: query
name: order
schema:
type: string
description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
- in: query
name: order_by
schema:
type: string
description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
- in: query
name: role_level
schema:
type: string
description: Filter by role level for RBAC
- name: search
required: false
in: query
description: A search term.
schema:
type: string
- in: query
name: type
schema:
type: string
description: Filter by object type. Supports comma-separated values for multiple types.
tags:
- Credential Types
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedActivityStreamList'
description: ''
x-ai-description: Get activity stream for credential type
summary: Credential types activity stream list
x-summary-source: derived
/api/v2/credential_types/{id}/credentials/:
get:
operationId: credential_types_credentials_list
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
- in: query
name: order
schema:
type: string
description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
- in: query
name: order_by
schema:
type: string
description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
- in: query
name: role_level
schema:
type: string
description: Filter by role level for RBAC
- name: search
required: false
in: query
description: A search term.
schema:
type: string
- in: query
name: type
schema:
type: string
description: Filter by object type. Supports comma-separated values for multiple types.
tags:
- Credential Types
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedCredentialList'
description: ''
x-ai-description: List credentials of a credential type
summary: Credential types credentials list
x-summary-source: derived
post:
operationId: credential_types_credentials_create
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
tags:
- Credential Types
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialRequest'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/Credential'
description: ''
x-ai-description: Create a credential of a credential type
summary: Credential types credentials create
x-summary-source: derived
/api/v2/credential_types/{id}/test/:
get:
operationId: credential_types_test_retrieve
description: 'Test a complete set of input values for an external credential before
saving it.'
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
tags:
- Credential Types
responses:
'200':
description: No response body
x-ai-description: Retrieve single test for a credential_type
summary: Credential types test retrieve
x-summary-source: derived
post:
operationId: credential_types_test_create
description: 'Test a complete set of input values for an external credential before
saving it.'
parameters:
- in: path
name: id
schema:
type: string
pattern: ^[0-9]+$
required: true
tags:
- Credential Types
responses:
'200':
description: No response body
x-ai-description: Test a complete set of input values for an external credential
summary: Credential types test create
x-summary-source: derived
/credential-types/:
get:
operationId: credential_types_list
description: List all credential types
parameters:
- in: query
name: name
schema:
type: string
description: Filter by credential type name.
- in: query
name: namespace
schema:
type: string
description: Filter by credential type namespace.
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
tags:
- Credential Types
security:
- EDAJWTAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedCredentialTypeList'
description: Return a list of credential types.
summary: Credential types list
x-summary-source: derived
post:
operationId: credential_types_create
description: Create a new credential type.
tags:
- Credential Types
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialTypeCreate'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CredentialTypeCreate'
multipart/form-data:
schema:
$ref: '#/components/schemas/CredentialTypeCreate'
required: true
security:
- EDAJWTAuthentication: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialType'
description: Return the new credential type.
summary: Credential types create
x-summary-source: derived
/credential-types/{id}/:
get:
operationId: credential_types_retrieve
description: Get credential type by id
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this credential type.
required: true
tags:
- Credential Types
security:
- EDAJWTAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialType'
description: Return a credential type by id.
summary: Credential types retrieve
x-summary-source: derived
patch:
operationId: credential_types_partial_update
description: Partial update of a credential type
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this credential type.
required: true
tags:
- Credential Types
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedCredentialTypeCreate'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedCredentialTypeCreate'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedCredentialTypeCreate'
security:
- EDAJWTAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialType'
description: Update successful. Return an updated credential type.
summary: Credential types partial update
x-summary-source: derived
delete:
operationId: credential_types_destroy
description: Delete a credential type by id
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this credential type.
required: true
tags:
- Credential Types
security:
- EDAJWTAuthentication: []
responses:
'204':
description: Delete successful.
'409':
description: CredentialType in use by Credentials.
summary: Credential types destroy
x-summary-source: derived
/credential-types/{id}/test/:
post:
operationId: credential_types_test_create
description: Run a test on External Credential
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this credential type.
required: true
tags:
- Credential Types
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CredentialTypeTest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CredentialTypeTest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CredentialTypeTest'
required: true
security:
- EDAJWTAuthentication: []
responses:
'202':
description: Test Successful.
'400':
description: Test failed.
summary: Credential types test create
x-summary-source: derived
components:
schemas:
CredentialTypeRequest:
type: object
properties:
name:
type:
- string
- 'null'
minLength: 1
maxLength: 512
description:
type:
- string
- 'null'
default: ''
kind:
enum:
- cloud
- net
- null
type:
- string
- 'null'
description: '* `cloud` - Cloud\n* `net` - Network'
x-spec-enum-id: 8c34823df94b101f
inputs:
default: {}
description: Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.
injectors:
default: {}
description: Enter injectors using either JSON or YAML syntax. Refer to the documentation for example syntax.
required:
- kind
- name
PaginatedActivityStreamList:
type: object
required:
- count
- results
properties:
count:
type: integer
example: 123
next:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=4
previous:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=2
results:
type: array
items:
$ref: '#/components/schemas/ActivityStream'
CredentialType:
type: object
properties:
id:
type: integer
readOnly: true
type:
type: string
readOnly: true
url:
type: string
readOnly: true
related:
type: string
readOnly: true
summary_fields:
type: string
readOnly: true
created:
type: string
readOnly: true
modified:
type: string
readOnly: true
name:
type:
- string
- 'null'
maxLength: 512
description:
type:
- string
- 'null'
default: ''
kind:
enum:
- ssh
- vault
- net
- scm
- cloud
- registry
- token
- insights
- external
- kubernetes
- galaxy
- cryptography
- null
type:
- string
- 'null'
description: '* `ssh` - Machine
* `vault` - Vault
* `net` - Network
* `scm` - Source Control
* `cloud` - Cloud
* `registry` - Container Registry
* `token` - Personal Access Token
* `insights` - Insights
* `external` - External
* `kubernetes` - Kubernetes
* `galaxy` - Galaxy/Automation Hub
* `cryptography` - Cryptography'
x-spec-enum-id: 8c34823df94b101f
namespace:
type:
- string
- 'null'
readOnly: true
managed:
type: boolean
readOnly: true
inputs:
default: {}
description: Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.
injectors:
default: {}
description: Enter injectors using either JSON or YAML syntax. Refer to the documentation for example syntax.
required:
- kind
- name
PatchedCredentialTypeRequest:
type: object
properties:
name:
type:
- string
- 'null'
minLength: 1
maxLength: 512
description:
type:
- string
- 'null'
default: ''
kind:
enum:
- cloud
- net
- null
type:
- string
- 'null'
description: '* `cloud` - Cloud\n* `net` - Network'
x-spec-enum-id: 8c34823df94b101f
inputs:
default: {}
description: Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.
injectors:
default: {}
description: Enter injectors using either JSON or YAML syntax. Refer to the documentation for example syntax.
Credential:
type: object
properties:
id:
type: integer
readOnly: true
type:
type: string
readOnly: true
url:
type: string
readOnly: true
related:
type: string
readOnly: true
summary_fields:
type: string
readOnly: true
created:
type: string
readOnly: true
modified:
type: string
readOnly: true
name:
type:
- string
- 'null'
maxLength: 512
description:
type:
- string
- 'null'
default: ''
organization:
type:
- integer
- 'null'
credential_type:
type: integer
description: Specify the type of credential you want to create. Refer to the documentation for details on each type.
managed:
type: boolean
readOnly: true
inputs:
default: {}
description: Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.
kind:
type: string
readOnly: true
cloud:
type: string
readOnly: true
kubernetes:
type: string
readOnly: true
required:
- credential_type
- name
ActivityStream:
type: object
properties:
id:
type: integer
readOnly: true
type:
type: string
readOnly: true
url:
type: string
readOnly: true
related:
type: string
readOnly: true
summary_fields:
type: string
readOnly: true
timestamp:
type: string
format: date-time
readOnly: true
operation:
enum:
- create
- update
- delete
- associate
- disassociate
- null
type:
- string
- 'null'
x-spec-enum-id: d1cf1307b8aa394e
description: 'The action taken with respect to the given object(s).
* `create` - Entity Created
* `update` - Entity Updated
* `delete` - Entity Deleted
* `associate` - Entity Associated with another Entity
* `disassociate` - Entity was Disassociated with another Entity'
changes:
type: string
readOnly: true
description: A summary of the new and changed values when an object is created, updated, or deleted
object1:
type:
- string
- 'null'
description: For create, update, and delete events this is the object type that was affected. For associate and disassociate events this is the object type associated or disassociated with object2.
object2:
type:
- string
- 'null'
description: Unpopulated for create, update, and delete events. For associate and disassociate events this is the object type that object1 is being associated with.
object_association:
type: string
readOnly: true
description: When present, shows the field name of the role or relationship that changed.
action_node:
type: string
readOnly: true
description: The cluster node the activity took place on.
object_type:
type: string
readOnly: true
description: When present, shows the model on which the role or relationship was defined.
required:
- object1
- object2
- operation
PaginatedCredentialList:
type: object
required:
- count
- results
properties:
count:
type: integer
example: 123
next:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=4
previous:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=2
results:
type: array
items:
$ref: '#/components/schemas/Credential'
CredentialRequest:
type: object
properties:
name:
type:
- string
- 'null'
minLength: 1
maxLength: 512
description:
type:
- string
- 'null'
default: ''
organization:
type:
- integer
- 'null'
credential_type:
type: integer
description: Specify the type of credential you want to create. Refer to the documentation for details on each type.
inputs:
default: {}
description: Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.
required:
- credential_type
- name
PaginatedCredentialTypeList:
type: object
required:
- count
- results
properties:
count:
type: integer
example: 123
next:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=4
previous:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=2
results:
type: array
items:
$ref: '#/components/schemas/CredentialType'
CredentialTypeCreate:
type: object
properties:
name:
type: string
description:
type: string
inputs:
description: Inputs of the credential type
injectors:
description: Injectors of the credential type
required:
- name
PatchedCredentialTypeCreate:
type: object
properties:
name:
type: string
description:
type: string
inputs:
description: Inputs of the credential type
injectors:
description: Injectors of the credential type
CredentialTypeTest:
type: object
properties:
inputs:
description: Inputs of the credential type for test
metadata:
description: Metadata of the credential type for testing
required:
- inputs
securitySchemes:
EDAJWTAuthentication:
type: apiKey
name: X-DAB-JW-TOKEN
in: header
cookieAuth:
type: apiKey
in: cookie
name: sessionid