All URIs are relative to https://app.harness.io/gateway
Method | HTTP request | Description |
---|---|---|
CreateEnvironmentV2 | Post /ng/api/environmentsV2 | Create an Environment |
DeleteEnvironmentV2 | Delete /ng/api/environmentsV2/{environmentIdentifier} | Delete an Environment by identifier |
DeleteServiceOverride | Delete /ng/api/environmentsV2/serviceOverrides | Delete a ServiceOverride entity |
GetEnvironmentAccessList | Get /ng/api/environmentsV2/list/access | Gets Environment Access list |
GetEnvironmentList | Get /ng/api/environmentsV2 | Gets Environment list for a project |
GetEnvironmentV2 | Get /ng/api/environmentsV2/{environmentIdentifier} | Gets an Environment by identifier |
GetServiceOverridesList | Get /ng/api/environmentsV2/serviceOverrides | Gets Service Overrides list |
UpdateEnvironmentV2 | Put /ng/api/environmentsV2 | Update an Environment by identifier |
UpsertEnvironmentV2 | Put /ng/api/environmentsV2/upsert | Upsert an Environment by identifier |
UpsertServiceOverride | Post /ng/api/environmentsV2/serviceOverrides | Upsert |
ImportEnvironment | Post ng/api/environmentV2/import | Get Environment YAML from Git Repository |
ResponseDtoEnvironmentResponse CreateEnvironmentV2(ctx, accountIdentifier, optional) Create an Environment
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity. | |
optional | *EnvironmentsApiCreateEnvironmentV2Opts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiCreateEnvironmentV2Opts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of EnvironmentRequest| Details of the Environment to be created |
ResponseDtoEnvironmentResponse
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoBoolean DeleteEnvironmentV2(ctx, environmentIdentifier, accountIdentifier, optional) Delete an Environment by identifier
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentIdentifier | string | Environment Identifier for the entity | |
accountIdentifier | string | Account Identifier for the Entity. | |
optional | *EnvironmentsApiDeleteEnvironmentV2Opts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiDeleteEnvironmentV2Opts struct
Name | Type | Description | Notes |
---|
ifMatch | optional.String| | orgIdentifier | optional.String| Organization Identifier for the Entity. | projectIdentifier | optional.String| Project Identifier for the Entity. |
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoBoolean DeleteServiceOverride(ctx, accountIdentifier, orgIdentifier, projectIdentifier, optional) Delete a ServiceOverride entity
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity. | |
orgIdentifier | string | Organization Identifier for the Entity. | |
projectIdentifier | string | Project Identifier for the Entity. | |
optional | *EnvironmentsApiDeleteServiceOverrideOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiDeleteServiceOverrideOpts struct
Name | Type | Description | Notes |
---|
environmentIdentifier | optional.String| Environment Identifier for the Entity. | serviceIdentifier | optional.String| Service Identifier for the Entity. |
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoListEnvironmentResponse GetEnvironmentAccessList(ctx, accountIdentifier, optional) Gets Environment Access list
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity. | |
optional | *EnvironmentsApiGetEnvironmentAccessListOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiGetEnvironmentAccessListOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page | [default to 0] size | optional.Int32| size | [default to 100] orgIdentifier | optional.String| Organization Identifier for the Entity. | projectIdentifier | optional.String| Project Identifier for the Entity. | searchTerm | optional.String| The word to be searched and included in the list response | envIdentifiers | optional.Interface of []string| List of EnvironmentIds | sort | optional.Interface of []string| Specifies sorting criteria of the list. Like sorting based on the last updated entity, alphabetical sorting in an ascending or descending order |
ResponseDtoListEnvironmentResponse
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoPageResponseEnvironmentResponse GetEnvironmentList(ctx, accountIdentifier, optional) Gets Environment list for a project
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity. | |
optional | *EnvironmentsApiGetEnvironmentListOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiGetEnvironmentListOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| Page Index of the results to fetch.Default Value: 0 | [default to 0] size | optional.Int32| Results per page | [default to 100] orgIdentifier | optional.String| Organization Identifier for the Entity. | projectIdentifier | optional.String| Project Identifier for the Entity. | searchTerm | optional.String| The word to be searched and included in the list response | envIdentifiers | optional.Interface of []string| List of EnvironmentIds | sort | optional.Interface of []string| Specifies sorting criteria of the list. Like sorting based on the last updated entity, alphabetical sorting in an ascending or descending order |
ResponseDtoPageResponseEnvironmentResponse
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoEnvironmentResponse GetEnvironmentV2(ctx, environmentIdentifier, accountIdentifier, optional) Gets an Environment by identifier
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentIdentifier | string | Environment Identifier for the entity | |
accountIdentifier | string | Account Identifier for the Entity. | |
optional | *EnvironmentsApiGetEnvironmentV2Opts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiGetEnvironmentV2Opts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| Organization Identifier for the Entity. | projectIdentifier | optional.String| Project Identifier for the Entity. | deleted | optional.Bool| Specify whether Environment is deleted or not | [default to false]
ResponseDtoEnvironmentResponse
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoPageResponseServiceOverrideResponse GetServiceOverridesList(ctx, accountIdentifier, orgIdentifier, projectIdentifier, environmentIdentifier, optional) Gets Service Overrides list
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity. | |
orgIdentifier | string | Organization Identifier for the Entity. | |
projectIdentifier | string | Project Identifier for the Entity. | |
environmentIdentifier | string | Environment Identifier for the Entity. | |
optional | *EnvironmentsApiGetServiceOverridesListOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiGetServiceOverridesListOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| Page Index of the results to fetch.Default Value: 0 | [default to 0] size | optional.Int32| Results per page | [default to 100] serviceIdentifier | optional.String| Service Identifier for the Entity. | sort | optional.Interface of []string| Specifies the sorting criteria of the list. Like sorting based on the last updated entity, alphabetical sorting in an ascending or descending order |
ResponseDtoPageResponseServiceOverrideResponse
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoEnvironmentResponse UpdateEnvironmentV2(ctx, accountIdentifier, optional) Update an Environment by identifier
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity. | |
optional | *EnvironmentsApiUpdateEnvironmentV2Opts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiUpdateEnvironmentV2Opts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of EnvironmentRequest| Details of the Environment to be updated | ifMatch | optional.| |
ResponseDtoEnvironmentResponse
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoEnvironmentResponse UpsertEnvironmentV2(ctx, accountIdentifier, optional) Upsert an Environment by identifier
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity. | |
optional | *EnvironmentsApiUpsertEnvironmentV2Opts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiUpsertEnvironmentV2Opts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of EnvironmentRequest| Details of the Environment to be updated | ifMatch | optional.| |
ResponseDtoEnvironmentResponse
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDtoServiceOverrideResponse UpsertServiceOverride(ctx, accountIdentifier, optional) Upsert
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | Account Identifier for the Entity. | |
optional | *EnvironmentsApiUpsertServiceOverrideOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsApiUpsertServiceOverrideOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of ServiceOverrideRequest| Details of the Service Override to be upserted |
ResponseDtoServiceOverrideResponse
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseEnvironmentImportResponseDto ImportEnvironment(ctx, accountIdentifier, optional) Get Environment YAML from Git Repository
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountIdentifier | string | ||
optional | *EnvironmentsV2ApiImportEnvironmentOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvironmentsV2ApiImportEnvironmentOpts struct
Name | Type | Description | Notes |
---|
orgIdentifier | optional.String| | projectIdentifier | optional.String| | environmentIdentifier | optional.String| | connectorRef | optional.String| | repoName | optional.String| | branch | optional.String| | filePath | optional.String| | isForceImport | optional.Bool| | [default to false] isHarnessCodeRepo | optional.Bool| |
ResponseEnvironmentImportResponseDto
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]