# keychaincredential.update

Update a Keychain Credential with specific id.

Please note that you can’t change type. You must specify full attributes value.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: id

#### id

Type: integer

Unique identifier of the keychain credential to update.

##### Parameter 2: keychain_credential_update

#### keychain_credential_update

Updated credential configuration data.

## Any of

#### KeychainCredentialUpdateSSHKeyPairEntry

Type: object
No Additional Properties

##

#### Name

Type: string

Distinguishes this Keychain Credential from others.

Must be at least `1` characters long

##

#### Attributes

Type: object

SSH key pair attributes including public and private keys.

No Additional Properties

##

#### Private Key

Default: null

SSH private key in OpenSSH format. `null` if only public key is provided.

## Any of

Type: string
Type: null

##

#### Public Key

Default: null

Can be omitted and automatically derived from the private key.

## Any of

Type: string
Type: null

#### KeychainCredentialUpdateSSHCredentialsEntry

Type: object
No Additional Properties

##

#### Name

Type: string

Distinguishes this Keychain Credential from others.

Must be at least `1` characters long

##

#### Attributes

Type: object

SSH connection attributes including host, authentication, and connection settings.

No Additional Properties

##

#### Host

Type: string

SSH server hostname or IP address.

##

#### Port

Type: integer Default: 22

SSH server port number.

##

#### Username

Type: string Default: "root"

SSH username for authentication.

##

#### Private Key

Type: integer

Keychain Credential ID.

##

#### Remote Host Key

Type: string

Can be discovered with keychaincredential.remotesshhostkeyscan.

##

#### Connect Timeout

Type: integer Default: 10

Connection timeout in seconds for SSH connections.

##

#### Result

The updated keychain credential entry.

## Any of

#### SSHKeyPairEntry

Type: object
No Additional Properties

##

#### Id

Type: integer

Unique identifier for this keychain credential.

##

#### Name

Type: string

Distinguishes this Keychain Credential from others.

Must be at least `1` characters long

##

#### Type

Type: const

Keychain credential type identifier for SSH key pairs.

Specific value: `"SSH_KEY_PAIR"`

##

#### Attributes

Type: object

SSH key pair attributes including public and private keys.

No Additional Properties

##

#### Private Key

Default: null

SSH private key in OpenSSH format. `null` if only public key is provided.

## Any of

Type: string
Type: null

##

#### Public Key

Default: null

Can be omitted and automatically derived from the private key.

## Any of

Type: string
Type: null

#### SSHCredentialsEntry

Type: object
No Additional Properties

##

#### Id

Type: integer

Unique identifier for this keychain credential.

##

#### Name

Type: string

Distinguishes this Keychain Credential from others.

Must be at least `1` characters long

##

#### Type

Type: const

Keychain credential type identifier for SSH connection credentials.

Specific value: `"SSH_CREDENTIALS"`

##

#### Attributes

Type: object

SSH connection attributes including host, authentication, and connection settings.

No Additional Properties

##

#### Host

Type: string

SSH server hostname or IP address.

##

#### Port

Type: integer Default: 22

SSH server port number.

##

#### Username

Type: string Default: "root"

SSH username for authentication.

##

#### Private Key

Type: integer

Keychain Credential ID.

##

#### Remote Host Key

Type: string

Can be discovered with keychaincredential.remotesshhostkeyscan.

##

#### Connect Timeout

Type: integer Default: 10

Connection timeout in seconds for SSH connections.

Required roles: KEYCHAIN_CREDENTIAL_WRITE