Retrieve a Credential Type
get
/api/v2/credential_types/{id}/
Make GET request to this resource to retrieve a single credential type record containing the following fields:
id: Database ID for this credential type. (integer)type: Data type for this credential type. (choice)url: URL for this credential type. (string)related: Data structure with URLs of related resources. (object)summary_fields: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)created: Timestamp when this credential type was created. (datetime)modified: Timestamp when this credential type was last modified. (datetime)name: Name of this credential type. (string)description: Optional description of this credential type. (string)kind: (choice)ssh: Machinevault: Vaultnet: Networkscm: Source Controlcloud: Cloudregistry: Container Registrytoken: Personal Access Tokeninsights: Insightsexternal: Externalkubernetes: Kubernetesgalaxy: Galaxy/Automation Hub
namespace: (string)managed: (boolean)inputs: Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax. (json)injectors: Enter injectors using either JSON or YAML syntax. Refer to the documentation for example syntax. (json)
Request
Supported Media Types
- application/json
Path Parameters
Query Parameters
-
search: string
A search term.
Response
Supported Media Types
- application/json
200 Response
Example Response (application/json)
{
"created":"2018-02-01T08:00:00.000000Z",
"description":"",
"id":"1",
"injectors":{
},
"inputs":{
},
"kind":"cloud",
"managed":false,
"modified":"2018-02-01T08:00:00.000000Z",
"name":"Some Other Name",
"namespace":null,
"related":{
"activity_stream":"/api/v2/credential_types/1/activity_stream/",
"credentials":"/api/v2/credential_types/1/credentials/"
},
"summary_fields":{
"user_capabilities":{
"delete":true,
"edit":true
}
},
"type":"credential_type",
"url":"/api/v2/credential_types/1/"
}