---
title: "POST /api/v2/secret-rotations/hp-ilo-local-account"
method: POST
path: "/api/v2/secret-rotations/hp-ilo-local-account"
tags: ["Secret Rotations"]
---

# POST /api/v2/secret-rotations/hp-ilo-local-account

`POST /api/v2/secret-rotations/hp-ilo-local-account`

## Request

- Base URL: `https://us.infisical.com`
- URL: `https://us.infisical.com/api/v2/secret-rotations/hp-ilo-local-account`
- Auth: none declared

Create a HP iLO Local Account Rotation for the specified project.

## Request body

- object
  - `name` string, required: The name of the HP iLO Local Account Rotation to create. Must be slug-friendly.
  - `projectId` string, required: The ID of the project to create the rotation in.
  - `description` string, nullable: An optional description for the HP iLO Local Account Rotation.
  - `connectionId` string, uuid, required: The ID of the SSH or HPE iLO Connection to use for rotation.
  - `environment` string, required: The slug of the project environment to create the rotation in.
  - `secretPath` string, required: The secret path of the project to create the rotation in.
  - `isAutoRotationEnabled` boolean: Whether secrets should be automatically rotated when the specified rotation interval has elapsed.
  - `rotationInterval` number, required: The interval, in days, to automatically rotate secrets.
  - `rotateAtUtc` object: The hours and minutes rotation should occur at in UTC. Defaults to Midnight (00:00) UTC.
    - `hours` number, required
    - `minutes` number, required
  - `parameters` object, required
    - `username` string, required: The username of the HP iLO account to rotate the password for.
    - `passwordRequirements` object: The password requirements to use when generating the new password.
      - `length` number, required: The length of the password to generate.
      - `required` object, required
        - `digits` number, required: The amount of digits to require in the generated password.
        - `lowercase` number, required: The amount of lowercase characters to require in the generated password.
        - `uppercase` number, required: The amount of uppercase characters to require in the generated password.
        - `symbols` number, required: The amount of symbols to require in the generated password.
      - `allowedSymbols` string: The allowed symbols to use in the generated password (defaults to "-_.~!*").
    - `rotationMethod` 'login-as-target' | 'login-as-root': Whether the rotation should be performed using "login-as-target" (the target user's own credentials) or "login-as-root" (the SSH connection's admin credentials). Defaults to "login-as-root".
  - `secretsMapping` object, required
    - `username` string, required: The name of the secret that the username will be mapped to.
    - `password` string, required: The name of the secret that the rotated password will be mapped to.
  - `temporaryParameters` object
    - `password` string: The current password of the target user. Required if "parameters.rotationMethod" is set to "login-as-target".

## Response `200`

Default Response

- object
  - `secretRotation` object, required
    - `id` string, uuid, required
    - `name` string, required
    - `description` string, nullable
    - `isAutoRotationEnabled` boolean
    - `activeIndex` number
    - `folderId` string, uuid, required
    - `connectionId` string, uuid, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `rotationInterval` number, required
    - `rotationStatus` string, required
    - `lastRotationAttemptedAt` string, date-time, required
    - `lastRotatedAt` string, date-time, required
    - `lastRotationJobId` string, nullable
    - `nextRotationAt` string, date-time, nullable
    - `isLastRotationManual` boolean
    - `connection` object, required
      - `app` 'ssh' | 'hpe-ilo', required
      - `name` string, required
      - `id` string, uuid, required
    - `environment` object, required
      - `slug` string, required
      - `name` string, required
      - `id` string, uuid, required
    - `projectId` string, required
    - `folder` object, required
      - `id` string, required
      - `path` string, required
    - `rotateAtUtc` object, required
      - `hours` number, required
      - `minutes` number, required
    - `lastRotationMessage` string, nullable
    - `type` 'hp-ilo-local-account', required
    - `parameters` object, required
      - `username` string, required: The username of the HP iLO account to rotate the password for.
      - `passwordRequirements` object: The password requirements to use when generating the new password.
        - `length` number, required: The length of the password to generate.
        - `required` object, required
          - `digits` number, required: The amount of digits to require in the generated password.
          - `lowercase` number, required: The amount of lowercase characters to require in the generated password.
          - `uppercase` number, required: The amount of uppercase characters to require in the generated password.
          - `symbols` number, required: The amount of symbols to require in the generated password.
        - `allowedSymbols` string: The allowed symbols to use in the generated password (defaults to "-_.~!*").
      - `rotationMethod` 'login-as-target' | 'login-as-root': Whether the rotation should be performed using "login-as-target" (the target user's own credentials) or "login-as-root" (the SSH connection's admin credentials). Defaults to "login-as-root".
    - `secretsMapping` object, required
      - `username` string, required: The name of the secret that the username will be mapped to.
      - `password` string, required: The name of the secret that the rotated password will be mapped to.

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `422`: Default Response
- `500`: Default Response

## Changes

- **2026-10-09** `42f78c74d333`: 1 warning
  - added the new `hpe-ilo` enum value to the `secretRotation/connection/app` response property for the response status `200`

[Operation history](https://skmtc.dev/infisical/apis/infisical-api/changes/api/v2/secret-rotations/hp-ilo-local-account/post.md)

---

[API](https://skmtc.dev/infisical/apis/infisical-api.md) - [All operations](https://skmtc.dev/infisical/apis/infisical-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infisical/apis/infisical-api/revisions/7f940199c899?raw)
