Create a Credential for a Job Template
post
/api/v2/job_templates/{id}/credentials/
Make a POST request to this resource with the following credential fields to create a new credential associated with this job template.
name: Name of this credential. (string, required)description: Optional description of this credential. (string, default="")organization: (id, default=None)-
credential_type: Specify the type of credential you want to create. Refer to the documentation for details on each type. (id, required) -
inputs: Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax. (json, default={})
Add Credentials for a Job Template:
Make a POST request to this resource with only an id field to associate an
existing credential with this job template.
Remove Credentials from this Job Template:
Make a POST request to this resource with id and disassociate fields to
remove the credential from this job template
without deleting the credential.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : Credential
Type:
Show Source
object-
cloud:
string
Title:
CloudRead Only:true -
created:
string
Title:
CreatedRead Only:true -
credential_type(required):
integer
Title:
Credential TypeSpecify the type of credential you want to create. Refer to the documentation for details on each type. -
description:
string
Title:
Description -
id:
integer
Title:
IDRead Only:true -
inputs:
object Inputs
Title:
InputsEnter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax. -
kind:
string
Title:
KindRead Only:true -
kubernetes:
string
Title:
KubernetesRead Only:true -
managed:
string
Title:
ManagedRead Only:true -
modified:
string
Title:
ModifiedRead Only:true -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 -
organization:
integer
Title:
Organization - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true
Nested Schema : Inputs
Type:
objectTitle:
InputsEnter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.
Response
Supported Media Types
- application/json
201 Response
Root Schema : Credential
Type:
Show Source
object-
cloud:
string
Title:
CloudRead Only:true -
created:
string
Title:
CreatedRead Only:true -
credential_type(required):
integer
Title:
Credential TypeSpecify the type of credential you want to create. Refer to the documentation for details on each type. -
description:
string
Title:
Description -
id:
integer
Title:
IDRead Only:true -
inputs:
object Inputs
Title:
InputsEnter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax. -
kind:
string
Title:
KindRead Only:true -
kubernetes:
string
Title:
KubernetesRead Only:true -
managed:
string
Title:
ManagedRead Only:true -
modified:
string
Title:
ModifiedRead Only:true -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 -
organization:
integer
Title:
Organization - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true
Nested Schema : Inputs
Type:
objectTitle:
InputsEnter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.