Skip to main content
Monitoring & Collection/Hardware

CreateHardwareCredential

Create an encrypted Hardware credential. Secret input is write-only. Requires a platform administrator.

POST/api/v1/hardware/credentials

Operation ID

CreateHardwareCredential

Since

1.3.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

Required JSON fields: name (string), credential_type (string), secret (object). username_password requires secret.username and secret.password; snmp_v2c requires secret.community. All secret values are nonempty strings. Unknown fields are rejected. Example: {"name":"bmc","credential_type":"username_password","secret":{"username":"monitor","password":"<secret>"}}

Request body root type: object

Responses

200 OK

A successful response.

Content-Type: application/json

Response body root type: object

  • uuid
    String

    UUID of the Hardware credential; never contains authentication data.

    Example: value

  • name
    String

    Administrator-defined display name for this credential.

    Example: my-resource

  • credentialType
    String

    Credential type for this resource

    Example: value

  • resourceRevision
    String

    Resource revision for this resource

    Example: 10

    {"format":"int64"}

  • credentialRevision
    String

    Credential revision for this resource

    Example: 10

    {"format":"int64"}

  • referencedTargetCount
    String

    Referenced target count for this resource

    Example: 10

    {"format":"int64"}