Bad Request
Internal Server Error
Returns the list of Infrastructure for an Environment
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of the Infrastructure to be updated
Bad Request
Internal Server Error
Returns the updated Infrastructure
Sample Infrastructure payload
{- "name": "infrastructure",
- "identifier": "infrastructureId",
- "description": "infrastructure description",
- "tags": { },
- "orgIdentifier": "default",
- "projectIdentifier": "projectIdentifier",
- "environmentRef": "environmentId",
- "deploymentType": "Kubernetes",
- "type": "KubernetesDirect",
- "yaml": "infrastructureDefinition:\n name: infrastructure\n identifier: infrastructure\n description: infrastructure description\n tags: {}\n orgIdentifier: default\n projectIdentifier: projectIdentifier\n environmentRef: environmentId\n deploymentType: Kubernetes\n type: KubernetesDirect\n spec:\n connectorRef: connectorId\n namespace: namespace\n releaseName: release-<+INFRA_KEY>\n allowSimultaneousDeployments: false\n"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of the Infrastructure to be created
Bad Request
Internal Server Error
Returns the created Infrastructure
Sample Infrastructure payload
{- "name": "infrastructure",
- "identifier": "infrastructureId",
- "description": "infrastructure description",
- "tags": { },
- "orgIdentifier": "default",
- "projectIdentifier": "projectIdentifier",
- "environmentRef": "environmentId",
- "deploymentType": "Kubernetes",
- "type": "KubernetesDirect",
- "yaml": "infrastructureDefinition:\n name: infrastructure\n identifier: infrastructure\n description: infrastructure description\n tags: {}\n orgIdentifier: default\n projectIdentifier: projectIdentifier\n environmentRef: environmentId\n deploymentType: Kubernetes\n type: KubernetesDirect\n spec:\n connectorRef: connectorId\n namespace: namespace\n releaseName: release-<+INFRA_KEY>\n allowSimultaneousDeployments: false\n"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
The saved Infrastructure
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns true if the Infrastructure is deleted
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Import and Create Infrastructure from Git Repository and saves a record for it in Harness
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Move infra YAML from inline to remote
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Update git-metadata in remote infrastructure and returns the identifier of updated infrastructure
Bad Request
Internal Server Error
Returns identifier of updated infrastructure
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}