# 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

##### Parameter 2: keychain_credential_update

#### keychain_credential_update

## 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

At least one of the two keys must be provided on creation.

No Additional Properties

##

#### Private Key

Default: null

## 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
No Additional Properties

##

#### Host

Type: string

##

#### Port

Type: integer Default: 22

##

#### Username

Type: string Default: "root"

##

#### Private Key

Type: integer

Keychain Credential ID.

##

#### Remote Host Key

Type: string

Can be discovered with keychaincredential.remotesshhostkeyscan.

##

#### Connect Timeout

Type: integer Default: 10

##

#### Result

## Any of

#### SSHKeyPairEntry

Type: object
No Additional Properties

##

#### Id

Type: integer

##

#### Name

Type: string

Distinguishes this Keychain Credential from others.

Must be at least `1` characters long

##

#### Type

Type: const
Specific value: `"SSH_KEY_PAIR"`

##

#### Attributes

Type: object

At least one of the two keys must be provided on creation.

No Additional Properties

##

#### Private Key

Default: null

## 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

##

#### Name

Type: string

Distinguishes this Keychain Credential from others.

Must be at least `1` characters long

##

#### Type

Type: const
Specific value: `"SSH_CREDENTIALS"`

##

#### Attributes

Type: object
No Additional Properties

##

#### Host

Type: string

##

#### Port

Type: integer Default: 22

##

#### Username

Type: string Default: "root"

##

#### Private Key

Type: integer

Keychain Credential ID.

##

#### Remote Host Key

Type: string

Can be discovered with keychaincredential.remotesshhostkeyscan.

##

#### Connect Timeout

Type: integer Default: 10

Required roles: KEYCHAIN_CREDENTIAL_WRITE