---
title: "Create infraProvider config"
method: POST
path: "/accounts/{accountIdentifier}/infraproviders"
tags: ["infraproviders"]
---

# Create infraProvider config

`POST /accounts/{accountIdentifier}/infraproviders`

## Path parameters

- `accountIdentifier` string, required

## Request body

- OpenapiCreateInfraProviderConfigRequest
  - `identifier` string
  - `metadata` object, nullable
  - `name` string
  - `space_ref` string
  - `type` 'docker' | 'harness_gcp' | 'harness_cloud' | 'hybrid_vm_gcp' | 'hybrid_vm_aws'

## Response `201`

Created

- TypesInfraProviderConfig
  - `created` integer
  - `deleted` integer, nullable
  - `identifier` string
  - `is_deleted` boolean
  - `metadata` object, nullable
  - `name` string
  - `resources` TypesInfraProviderResource[], nullable
    - `config_identifier` string
    - `config_name` string
    - `cpu` string, nullable
    - `created` integer
    - `deleted` integer, nullable
    - `disk` string, nullable
    - `identifier` string
    - `infra_provider_type` 'docker' | 'harness_gcp' | 'harness_cloud' | 'hybrid_vm_gcp' | 'hybrid_vm_aws'
    - `is_deleted` boolean
    - `memory` string, nullable
    - `metadata` object, nullable
    - `name` string
    - `network` string, nullable
    - `region` string
    - `space_path` string
    - `updated` integer
  - `setup_yaml` string
  - `space_path` string
  - `type` 'docker' | 'harness_gcp' | 'harness_cloud' | 'hybrid_vm_gcp' | 'hybrid_vm_aws'
  - `updated` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

## Changes

> 19 revisions in range; 1 not diffed.

- **2025-11-17** `a39dc72168fe` — 2 warning, 2 info
  - added the new `hybrid_vm_aws` enum value to the `resources/items/infra_provider_type` response property for the response status `201`
  - added the new `hybrid_vm_aws` enum value to the `type` response property for the response status `201`
  - added the new `hybrid_vm_aws` enum value to the request property `type`
  - added the optional property `resources/items/config_name` to the response with the `201` status
- **2025-04-01** `754dabce6b6f` — 2 info
  - added the optional property `deleted` to the response with the `201` status
  - added the optional property `is_deleted` to the response with the `201` status
- **2025-02-28** `2513fb81d02b` — 1 info
  - endpoint added
- **2024-05-29** `e133a34ecf0b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/harness/apis/api-specification/changes/accounts/:accountIdentifier/infraproviders/post.md)

---

[API](https://skmtc.dev/harness/apis/api-specification.md) · [All operations](https://skmtc.dev/harness/apis/api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/harness/api-specification/revisions/3b3bedabcfa7/schema)
