aap_create_credential
Create an Ansible Automation Platform credential by providing its name, type ID, and type-specific inputs. Use list credential types to identify the correct type and input schema.
Instructions
Create a new AAP credential.
Use aap_list_credential_types first to find the correct type ID and understand required inputs schema for that type.
Args: params (CreateCredInput): - name (str): Credential name - credential_type_id (int): Type ID - inputs (dict): Type-specific inputs (username, password, ssh_key_data, etc.) - organization_id (Optional[int]): Owner org - description (str): Optional description
Returns: str: JSON with created credential id and name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "aap_create_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |