---
title: "POST /create-auth-method-huawei"
method: POST
path: "/create-auth-method-huawei"
tags: ["v2"]
---

# POST /create-auth-method-huawei

`POST /create-auth-method-huawei`

## Request body

- CreateAuthMethodHuawei — createAuthMethodHuawei is a command that creates a new auth method that will be able to authenticate using Huawei credentials.
  - `access-expires` integer — Access expiration date in Unix timestamp (select 0 for access without expiry date)
  - `allowed-client-type` string[] — limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
  - `audit-logs-claims` string[] — Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
  - `auth-url` string — sts URL
  - `bound-domain-id` string[] — A list of domain IDs that the access is restricted to
  - `bound-domain-name` string[] — A list of domain names that the access is restricted to
  - `bound-ips` string[] — A CIDR whitelist with the IPs that the access is restricted to
  - `bound-tenant-id` string[] — A list of full tenant ids that the access is restricted to
  - `bound-tenant-name` string[] — A list of full tenant names that the access is restricted to
  - `bound-user-id` string[] — A list of full user ids that the access is restricted to
  - `bound-user-name` string[] — A list of full user-name that the access is restricted to
  - `delete_protection` string — Protection from accidental deletion of this object [true/false]
  - `description` string — Auth Method description
  - `expiration-event-in` string[] — How many days before the expiration of the auth method would you like to be notified.
  - `force-sub-claims` boolean — if true: enforce role-association must include sub claims
  - `gw-bound-ips` string[] — A CIDR whitelist with the GW IPs that the access is restricted to
  - `json` boolean — Set output format to JSON
  - `jwt-ttl` integer — Jwt TTL
  - `name` string, required — Auth Method name
  - `product-type` string[] — Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

createAuthMethodHuaweiResponse wraps response body.

- CreateAuthMethodHuaweiOutput
  - `access_id` string

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
