harness.platform.ServiceOverridesV2
Explore with Pulumi AI
Resource for creating a Harness service override V2.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = new harness.platform.ServiceOverridesV2("test", {
orgId: "orgIdentifier",
projectId: "projectIdentifier",
envId: "environmentIdentifier",
serviceId: "serviceIdentifier",
infraId: "infraIdentifier",
type: "INFRA_SERVICE_OVERRIDE",
yaml: `variables:
- name: var1
type: String
value: val1
configFiles:
- configFile:
identifier: sampleConfigFile
spec:
store:
type: Harness
spec:
files:
- account:/configFile1
manifests:
- manifest:
identifier: sampleManifestFile
type: Values
spec:
store:
type: Harness
spec:
files:
- account:/manifestFile1
`,
});
import pulumi
import pulumi_harness as harness
test = harness.platform.ServiceOverridesV2("test",
org_id="orgIdentifier",
project_id="projectIdentifier",
env_id="environmentIdentifier",
service_id="serviceIdentifier",
infra_id="infraIdentifier",
type="INFRA_SERVICE_OVERRIDE",
yaml="""variables:
- name: var1
type: String
value: val1
configFiles:
- configFile:
identifier: sampleConfigFile
spec:
store:
type: Harness
spec:
files:
- account:/configFile1
manifests:
- manifest:
identifier: sampleManifestFile
type: Values
spec:
store:
type: Harness
spec:
files:
- account:/manifestFile1
""")
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewServiceOverridesV2(ctx, "test", &platform.ServiceOverridesV2Args{
OrgId: pulumi.String("orgIdentifier"),
ProjectId: pulumi.String("projectIdentifier"),
EnvId: pulumi.String("environmentIdentifier"),
ServiceId: pulumi.String("serviceIdentifier"),
InfraId: pulumi.String("infraIdentifier"),
Type: pulumi.String("INFRA_SERVICE_OVERRIDE"),
Yaml: pulumi.String(`variables:
- name: var1
type: String
value: val1
configFiles:
- configFile:
identifier: sampleConfigFile
spec:
store:
type: Harness
spec:
files:
- account:/configFile1
manifests:
- manifest:
identifier: sampleManifestFile
type: Values
spec:
store:
type: Harness
spec:
files:
- account:/manifestFile1
`),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var test = new Harness.Platform.ServiceOverridesV2("test", new()
{
OrgId = "orgIdentifier",
ProjectId = "projectIdentifier",
EnvId = "environmentIdentifier",
ServiceId = "serviceIdentifier",
InfraId = "infraIdentifier",
Type = "INFRA_SERVICE_OVERRIDE",
Yaml = @"variables:
- name: var1
type: String
value: val1
configFiles:
- configFile:
identifier: sampleConfigFile
spec:
store:
type: Harness
spec:
files:
- account:/configFile1
manifests:
- manifest:
identifier: sampleManifestFile
type: Values
spec:
store:
type: Harness
spec:
files:
- account:/manifestFile1
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.ServiceOverridesV2;
import com.pulumi.harness.platform.ServiceOverridesV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new ServiceOverridesV2("test", ServiceOverridesV2Args.builder()
.orgId("orgIdentifier")
.projectId("projectIdentifier")
.envId("environmentIdentifier")
.serviceId("serviceIdentifier")
.infraId("infraIdentifier")
.type("INFRA_SERVICE_OVERRIDE")
.yaml("""
variables:
- name: var1
type: String
value: val1
configFiles:
- configFile:
identifier: sampleConfigFile
spec:
store:
type: Harness
spec:
files:
- account:/configFile1
manifests:
- manifest:
identifier: sampleManifestFile
type: Values
spec:
store:
type: Harness
spec:
files:
- account:/manifestFile1
""")
.build());
}
}
resources:
test:
type: harness:platform:ServiceOverridesV2
properties:
orgId: orgIdentifier
projectId: projectIdentifier
envId: environmentIdentifier
serviceId: serviceIdentifier
infraId: infraIdentifier
type: INFRA_SERVICE_OVERRIDE
yaml: |
variables:
- name: var1
type: String
value: val1
configFiles:
- configFile:
identifier: sampleConfigFile
spec:
store:
type: Harness
spec:
files:
- account:/configFile1
manifests:
- manifest:
identifier: sampleManifestFile
type: Values
spec:
store:
type: Harness
spec:
files:
- account:/manifestFile1
Creating Remote Service Override
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = new harness.platform.ServiceOverridesV2("test", {
orgId: "orgIdentifier",
projectId: "projectIdentifier",
envId: "environmentIdentifier",
serviceId: "serviceIdentifier",
infraId: "infraIdentifier",
type: "INFRA_SERVICE_OVERRIDE",
gitDetails: {
storeType: "REMOTE",
connectorRef: "connector_ref",
repoName: "repo_name",
filePath: "file_path",
branch: "branch",
},
yaml: `variables:
- name: v1
type: String
value: val1
manifests:
- manifest:
identifier: manifest1
type: Values
spec:
store:
type: Github
spec:
connectorRef: "<+input>"
gitFetchType: Branch
paths:
- path-updated
repoName: "<+input>"
branch: master
skipResourceVersioning: false
`,
});
import pulumi
import pulumi_harness as harness
test = harness.platform.ServiceOverridesV2("test",
org_id="orgIdentifier",
project_id="projectIdentifier",
env_id="environmentIdentifier",
service_id="serviceIdentifier",
infra_id="infraIdentifier",
type="INFRA_SERVICE_OVERRIDE",
git_details={
"store_type": "REMOTE",
"connector_ref": "connector_ref",
"repo_name": "repo_name",
"file_path": "file_path",
"branch": "branch",
},
yaml="""variables:
- name: v1
type: String
value: val1
manifests:
- manifest:
identifier: manifest1
type: Values
spec:
store:
type: Github
spec:
connectorRef: "<+input>"
gitFetchType: Branch
paths:
- path-updated
repoName: "<+input>"
branch: master
skipResourceVersioning: false
""")
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewServiceOverridesV2(ctx, "test", &platform.ServiceOverridesV2Args{
OrgId: pulumi.String("orgIdentifier"),
ProjectId: pulumi.String("projectIdentifier"),
EnvId: pulumi.String("environmentIdentifier"),
ServiceId: pulumi.String("serviceIdentifier"),
InfraId: pulumi.String("infraIdentifier"),
Type: pulumi.String("INFRA_SERVICE_OVERRIDE"),
GitDetails: &platform.ServiceOverridesV2GitDetailsArgs{
StoreType: pulumi.String("REMOTE"),
ConnectorRef: pulumi.String("connector_ref"),
RepoName: pulumi.String("repo_name"),
FilePath: pulumi.String("file_path"),
Branch: pulumi.String("branch"),
},
Yaml: pulumi.String(`variables:
- name: v1
type: String
value: val1
manifests:
- manifest:
identifier: manifest1
type: Values
spec:
store:
type: Github
spec:
connectorRef: "<+input>"
gitFetchType: Branch
paths:
- path-updated
repoName: "<+input>"
branch: master
skipResourceVersioning: false
`),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var test = new Harness.Platform.ServiceOverridesV2("test", new()
{
OrgId = "orgIdentifier",
ProjectId = "projectIdentifier",
EnvId = "environmentIdentifier",
ServiceId = "serviceIdentifier",
InfraId = "infraIdentifier",
Type = "INFRA_SERVICE_OVERRIDE",
GitDetails = new Harness.Platform.Inputs.ServiceOverridesV2GitDetailsArgs
{
StoreType = "REMOTE",
ConnectorRef = "connector_ref",
RepoName = "repo_name",
FilePath = "file_path",
Branch = "branch",
},
Yaml = @"variables:
- name: v1
type: String
value: val1
manifests:
- manifest:
identifier: manifest1
type: Values
spec:
store:
type: Github
spec:
connectorRef: ""<+input>""
gitFetchType: Branch
paths:
- path-updated
repoName: ""<+input>""
branch: master
skipResourceVersioning: false
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.ServiceOverridesV2;
import com.pulumi.harness.platform.ServiceOverridesV2Args;
import com.pulumi.harness.platform.inputs.ServiceOverridesV2GitDetailsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new ServiceOverridesV2("test", ServiceOverridesV2Args.builder()
.orgId("orgIdentifier")
.projectId("projectIdentifier")
.envId("environmentIdentifier")
.serviceId("serviceIdentifier")
.infraId("infraIdentifier")
.type("INFRA_SERVICE_OVERRIDE")
.gitDetails(ServiceOverridesV2GitDetailsArgs.builder()
.storeType("REMOTE")
.connectorRef("connector_ref")
.repoName("repo_name")
.filePath("file_path")
.branch("branch")
.build())
.yaml("""
variables:
- name: v1
type: String
value: val1
manifests:
- manifest:
identifier: manifest1
type: Values
spec:
store:
type: Github
spec:
connectorRef: "<+input>"
gitFetchType: Branch
paths:
- path-updated
repoName: "<+input>"
branch: master
skipResourceVersioning: false
""")
.build());
}
}
resources:
test:
type: harness:platform:ServiceOverridesV2
properties:
orgId: orgIdentifier
projectId: projectIdentifier
envId: environmentIdentifier
serviceId: serviceIdentifier
infraId: infraIdentifier
type: INFRA_SERVICE_OVERRIDE
gitDetails:
storeType: REMOTE
connectorRef: connector_ref
repoName: repo_name
filePath: file_path
branch: branch
yaml: |
variables:
- name: v1
type: String
value: val1
manifests:
- manifest:
identifier: manifest1
type: Values
spec:
store:
type: Github
spec:
connectorRef: "<+input>"
gitFetchType: Branch
paths:
- path-updated
repoName: "<+input>"
branch: master
skipResourceVersioning: false
Importing Service Override From Git
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = new harness.platform.ServiceOverridesV2("test", {
orgId: "orgIdentifier",
projectId: "projectIdentifier",
envId: "environmentIdentifier",
serviceId: "serviceIdentifier",
infraId: "infraIdentifier",
type: "INFRA_SERVICE_OVERRIDE",
importFromGit: true,
gitDetails: {
storeType: "REMOTE",
connectorRef: "connector_ref",
repoName: "repo_name",
filePath: "file_path",
branch: "branch",
},
});
import pulumi
import pulumi_harness as harness
test = harness.platform.ServiceOverridesV2("test",
org_id="orgIdentifier",
project_id="projectIdentifier",
env_id="environmentIdentifier",
service_id="serviceIdentifier",
infra_id="infraIdentifier",
type="INFRA_SERVICE_OVERRIDE",
import_from_git=True,
git_details={
"store_type": "REMOTE",
"connector_ref": "connector_ref",
"repo_name": "repo_name",
"file_path": "file_path",
"branch": "branch",
})
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewServiceOverridesV2(ctx, "test", &platform.ServiceOverridesV2Args{
OrgId: pulumi.String("orgIdentifier"),
ProjectId: pulumi.String("projectIdentifier"),
EnvId: pulumi.String("environmentIdentifier"),
ServiceId: pulumi.String("serviceIdentifier"),
InfraId: pulumi.String("infraIdentifier"),
Type: pulumi.String("INFRA_SERVICE_OVERRIDE"),
ImportFromGit: pulumi.Bool(true),
GitDetails: &platform.ServiceOverridesV2GitDetailsArgs{
StoreType: pulumi.String("REMOTE"),
ConnectorRef: pulumi.String("connector_ref"),
RepoName: pulumi.String("repo_name"),
FilePath: pulumi.String("file_path"),
Branch: pulumi.String("branch"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var test = new Harness.Platform.ServiceOverridesV2("test", new()
{
OrgId = "orgIdentifier",
ProjectId = "projectIdentifier",
EnvId = "environmentIdentifier",
ServiceId = "serviceIdentifier",
InfraId = "infraIdentifier",
Type = "INFRA_SERVICE_OVERRIDE",
ImportFromGit = true,
GitDetails = new Harness.Platform.Inputs.ServiceOverridesV2GitDetailsArgs
{
StoreType = "REMOTE",
ConnectorRef = "connector_ref",
RepoName = "repo_name",
FilePath = "file_path",
Branch = "branch",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.ServiceOverridesV2;
import com.pulumi.harness.platform.ServiceOverridesV2Args;
import com.pulumi.harness.platform.inputs.ServiceOverridesV2GitDetailsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new ServiceOverridesV2("test", ServiceOverridesV2Args.builder()
.orgId("orgIdentifier")
.projectId("projectIdentifier")
.envId("environmentIdentifier")
.serviceId("serviceIdentifier")
.infraId("infraIdentifier")
.type("INFRA_SERVICE_OVERRIDE")
.importFromGit("true")
.gitDetails(ServiceOverridesV2GitDetailsArgs.builder()
.storeType("REMOTE")
.connectorRef("connector_ref")
.repoName("repo_name")
.filePath("file_path")
.branch("branch")
.build())
.build());
}
}
resources:
test:
type: harness:platform:ServiceOverridesV2
properties:
orgId: orgIdentifier
projectId: projectIdentifier
envId: environmentIdentifier
serviceId: serviceIdentifier
infraId: infraIdentifier
type: INFRA_SERVICE_OVERRIDE
importFromGit: 'true'
gitDetails:
storeType: REMOTE
connectorRef: connector_ref
repoName: repo_name
filePath: file_path
branch: branch
Create ServiceOverridesV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceOverridesV2(name: string, args: ServiceOverridesV2Args, opts?: CustomResourceOptions);
@overload
def ServiceOverridesV2(resource_name: str,
args: ServiceOverridesV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceOverridesV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
env_id: Optional[str] = None,
type: Optional[str] = None,
cluster_id: Optional[str] = None,
git_details: Optional[ServiceOverridesV2GitDetailsArgs] = None,
identifier: Optional[str] = None,
import_from_git: Optional[bool] = None,
infra_id: Optional[str] = None,
is_force_import: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
service_id: Optional[str] = None,
yaml: Optional[str] = None)
func NewServiceOverridesV2(ctx *Context, name string, args ServiceOverridesV2Args, opts ...ResourceOption) (*ServiceOverridesV2, error)
public ServiceOverridesV2(string name, ServiceOverridesV2Args args, CustomResourceOptions? opts = null)
public ServiceOverridesV2(String name, ServiceOverridesV2Args args)
public ServiceOverridesV2(String name, ServiceOverridesV2Args args, CustomResourceOptions options)
type: harness:platform:ServiceOverridesV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceOverridesV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceOverridesV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceOverridesV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceOverridesV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceOverridesV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serviceOverridesV2Resource = new Harness.Platform.ServiceOverridesV2("serviceOverridesV2Resource", new()
{
EnvId = "string",
Type = "string",
ClusterId = "string",
GitDetails = new Harness.Platform.Inputs.ServiceOverridesV2GitDetailsArgs
{
BaseBranch = "string",
Branch = "string",
CommitMessage = "string",
ConnectorRef = "string",
FilePath = "string",
IsHarnessCodeRepo = false,
IsNewBranch = false,
LastCommitId = "string",
LastObjectId = "string",
LoadFromCache = false,
LoadFromFallbackBranch = false,
RepoName = "string",
StoreType = "string",
},
Identifier = "string",
ImportFromGit = false,
InfraId = "string",
IsForceImport = false,
OrgId = "string",
ProjectId = "string",
ServiceId = "string",
Yaml = "string",
});
example, err := platform.NewServiceOverridesV2(ctx, "serviceOverridesV2Resource", &platform.ServiceOverridesV2Args{
EnvId: pulumi.String("string"),
Type: pulumi.String("string"),
ClusterId: pulumi.String("string"),
GitDetails: &platform.ServiceOverridesV2GitDetailsArgs{
BaseBranch: pulumi.String("string"),
Branch: pulumi.String("string"),
CommitMessage: pulumi.String("string"),
ConnectorRef: pulumi.String("string"),
FilePath: pulumi.String("string"),
IsHarnessCodeRepo: pulumi.Bool(false),
IsNewBranch: pulumi.Bool(false),
LastCommitId: pulumi.String("string"),
LastObjectId: pulumi.String("string"),
LoadFromCache: pulumi.Bool(false),
LoadFromFallbackBranch: pulumi.Bool(false),
RepoName: pulumi.String("string"),
StoreType: pulumi.String("string"),
},
Identifier: pulumi.String("string"),
ImportFromGit: pulumi.Bool(false),
InfraId: pulumi.String("string"),
IsForceImport: pulumi.Bool(false),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
ServiceId: pulumi.String("string"),
Yaml: pulumi.String("string"),
})
var serviceOverridesV2Resource = new ServiceOverridesV2("serviceOverridesV2Resource", ServiceOverridesV2Args.builder()
.envId("string")
.type("string")
.clusterId("string")
.gitDetails(ServiceOverridesV2GitDetailsArgs.builder()
.baseBranch("string")
.branch("string")
.commitMessage("string")
.connectorRef("string")
.filePath("string")
.isHarnessCodeRepo(false)
.isNewBranch(false)
.lastCommitId("string")
.lastObjectId("string")
.loadFromCache(false)
.loadFromFallbackBranch(false)
.repoName("string")
.storeType("string")
.build())
.identifier("string")
.importFromGit(false)
.infraId("string")
.isForceImport(false)
.orgId("string")
.projectId("string")
.serviceId("string")
.yaml("string")
.build());
service_overrides_v2_resource = harness.platform.ServiceOverridesV2("serviceOverridesV2Resource",
env_id="string",
type="string",
cluster_id="string",
git_details={
"base_branch": "string",
"branch": "string",
"commit_message": "string",
"connector_ref": "string",
"file_path": "string",
"is_harness_code_repo": False,
"is_new_branch": False,
"last_commit_id": "string",
"last_object_id": "string",
"load_from_cache": False,
"load_from_fallback_branch": False,
"repo_name": "string",
"store_type": "string",
},
identifier="string",
import_from_git=False,
infra_id="string",
is_force_import=False,
org_id="string",
project_id="string",
service_id="string",
yaml="string")
const serviceOverridesV2Resource = new harness.platform.ServiceOverridesV2("serviceOverridesV2Resource", {
envId: "string",
type: "string",
clusterId: "string",
gitDetails: {
baseBranch: "string",
branch: "string",
commitMessage: "string",
connectorRef: "string",
filePath: "string",
isHarnessCodeRepo: false,
isNewBranch: false,
lastCommitId: "string",
lastObjectId: "string",
loadFromCache: false,
loadFromFallbackBranch: false,
repoName: "string",
storeType: "string",
},
identifier: "string",
importFromGit: false,
infraId: "string",
isForceImport: false,
orgId: "string",
projectId: "string",
serviceId: "string",
yaml: "string",
});
type: harness:platform:ServiceOverridesV2
properties:
clusterId: string
envId: string
gitDetails:
baseBranch: string
branch: string
commitMessage: string
connectorRef: string
filePath: string
isHarnessCodeRepo: false
isNewBranch: false
lastCommitId: string
lastObjectId: string
loadFromCache: false
loadFromFallbackBranch: false
repoName: string
storeType: string
identifier: string
importFromGit: false
infraId: string
isForceImport: false
orgId: string
projectId: string
serviceId: string
type: string
yaml: string
ServiceOverridesV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServiceOverridesV2 resource accepts the following input properties:
- Env
Id string - The environment ID to which the overrides are associated.
- Type string
- The type of the overrides.
- Cluster
Id string - The cluster ID to which the overrides are associated.
- Git
Details ServiceOverrides V2Git Details - Contains parameters related to creating an Entity for Git Experience.
- Identifier string
- The identifier of the override entity.
- Import
From boolGit - import override from git
- Infra
Id string - The infrastructure ID to which the overrides are associated.
- Is
Force boolImport - force import override from remote even if same file path already exist
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Service
Id string - The service ID to which the overrides applies.
- Yaml string
- The yaml of the overrides spec object.
- Env
Id string - The environment ID to which the overrides are associated.
- Type string
- The type of the overrides.
- Cluster
Id string - The cluster ID to which the overrides are associated.
- Git
Details ServiceOverrides V2Git Details Args - Contains parameters related to creating an Entity for Git Experience.
- Identifier string
- The identifier of the override entity.
- Import
From boolGit - import override from git
- Infra
Id string - The infrastructure ID to which the overrides are associated.
- Is
Force boolImport - force import override from remote even if same file path already exist
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Service
Id string - The service ID to which the overrides applies.
- Yaml string
- The yaml of the overrides spec object.
- env
Id String - The environment ID to which the overrides are associated.
- type String
- The type of the overrides.
- cluster
Id String - The cluster ID to which the overrides are associated.
- git
Details ServiceOverrides V2Git Details - Contains parameters related to creating an Entity for Git Experience.
- identifier String
- The identifier of the override entity.
- import
From BooleanGit - import override from git
- infra
Id String - The infrastructure ID to which the overrides are associated.
- is
Force BooleanImport - force import override from remote even if same file path already exist
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- service
Id String - The service ID to which the overrides applies.
- yaml String
- The yaml of the overrides spec object.
- env
Id string - The environment ID to which the overrides are associated.
- type string
- The type of the overrides.
- cluster
Id string - The cluster ID to which the overrides are associated.
- git
Details ServiceOverrides V2Git Details - Contains parameters related to creating an Entity for Git Experience.
- identifier string
- The identifier of the override entity.
- import
From booleanGit - import override from git
- infra
Id string - The infrastructure ID to which the overrides are associated.
- is
Force booleanImport - force import override from remote even if same file path already exist
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- service
Id string - The service ID to which the overrides applies.
- yaml string
- The yaml of the overrides spec object.
- env_
id str - The environment ID to which the overrides are associated.
- type str
- The type of the overrides.
- cluster_
id str - The cluster ID to which the overrides are associated.
- git_
details ServiceOverrides V2Git Details Args - Contains parameters related to creating an Entity for Git Experience.
- identifier str
- The identifier of the override entity.
- import_
from_ boolgit - import override from git
- infra_
id str - The infrastructure ID to which the overrides are associated.
- is_
force_ boolimport - force import override from remote even if same file path already exist
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- service_
id str - The service ID to which the overrides applies.
- yaml str
- The yaml of the overrides spec object.
- env
Id String - The environment ID to which the overrides are associated.
- type String
- The type of the overrides.
- cluster
Id String - The cluster ID to which the overrides are associated.
- git
Details Property Map - Contains parameters related to creating an Entity for Git Experience.
- identifier String
- The identifier of the override entity.
- import
From BooleanGit - import override from git
- infra
Id String - The infrastructure ID to which the overrides are associated.
- is
Force BooleanImport - force import override from remote even if same file path already exist
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- service
Id String - The service ID to which the overrides applies.
- yaml String
- The yaml of the overrides spec object.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceOverridesV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ServiceOverridesV2 Resource
Get an existing ServiceOverridesV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceOverridesV2State, opts?: CustomResourceOptions): ServiceOverridesV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
env_id: Optional[str] = None,
git_details: Optional[ServiceOverridesV2GitDetailsArgs] = None,
identifier: Optional[str] = None,
import_from_git: Optional[bool] = None,
infra_id: Optional[str] = None,
is_force_import: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
service_id: Optional[str] = None,
type: Optional[str] = None,
yaml: Optional[str] = None) -> ServiceOverridesV2
func GetServiceOverridesV2(ctx *Context, name string, id IDInput, state *ServiceOverridesV2State, opts ...ResourceOption) (*ServiceOverridesV2, error)
public static ServiceOverridesV2 Get(string name, Input<string> id, ServiceOverridesV2State? state, CustomResourceOptions? opts = null)
public static ServiceOverridesV2 get(String name, Output<String> id, ServiceOverridesV2State state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - The cluster ID to which the overrides are associated.
- Env
Id string - The environment ID to which the overrides are associated.
- Git
Details ServiceOverrides V2Git Details - Contains parameters related to creating an Entity for Git Experience.
- Identifier string
- The identifier of the override entity.
- Import
From boolGit - import override from git
- Infra
Id string - The infrastructure ID to which the overrides are associated.
- Is
Force boolImport - force import override from remote even if same file path already exist
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Service
Id string - The service ID to which the overrides applies.
- Type string
- The type of the overrides.
- Yaml string
- The yaml of the overrides spec object.
- Cluster
Id string - The cluster ID to which the overrides are associated.
- Env
Id string - The environment ID to which the overrides are associated.
- Git
Details ServiceOverrides V2Git Details Args - Contains parameters related to creating an Entity for Git Experience.
- Identifier string
- The identifier of the override entity.
- Import
From boolGit - import override from git
- Infra
Id string - The infrastructure ID to which the overrides are associated.
- Is
Force boolImport - force import override from remote even if same file path already exist
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Service
Id string - The service ID to which the overrides applies.
- Type string
- The type of the overrides.
- Yaml string
- The yaml of the overrides spec object.
- cluster
Id String - The cluster ID to which the overrides are associated.
- env
Id String - The environment ID to which the overrides are associated.
- git
Details ServiceOverrides V2Git Details - Contains parameters related to creating an Entity for Git Experience.
- identifier String
- The identifier of the override entity.
- import
From BooleanGit - import override from git
- infra
Id String - The infrastructure ID to which the overrides are associated.
- is
Force BooleanImport - force import override from remote even if same file path already exist
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- service
Id String - The service ID to which the overrides applies.
- type String
- The type of the overrides.
- yaml String
- The yaml of the overrides spec object.
- cluster
Id string - The cluster ID to which the overrides are associated.
- env
Id string - The environment ID to which the overrides are associated.
- git
Details ServiceOverrides V2Git Details - Contains parameters related to creating an Entity for Git Experience.
- identifier string
- The identifier of the override entity.
- import
From booleanGit - import override from git
- infra
Id string - The infrastructure ID to which the overrides are associated.
- is
Force booleanImport - force import override from remote even if same file path already exist
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- service
Id string - The service ID to which the overrides applies.
- type string
- The type of the overrides.
- yaml string
- The yaml of the overrides spec object.
- cluster_
id str - The cluster ID to which the overrides are associated.
- env_
id str - The environment ID to which the overrides are associated.
- git_
details ServiceOverrides V2Git Details Args - Contains parameters related to creating an Entity for Git Experience.
- identifier str
- The identifier of the override entity.
- import_
from_ boolgit - import override from git
- infra_
id str - The infrastructure ID to which the overrides are associated.
- is_
force_ boolimport - force import override from remote even if same file path already exist
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- service_
id str - The service ID to which the overrides applies.
- type str
- The type of the overrides.
- yaml str
- The yaml of the overrides spec object.
- cluster
Id String - The cluster ID to which the overrides are associated.
- env
Id String - The environment ID to which the overrides are associated.
- git
Details Property Map - Contains parameters related to creating an Entity for Git Experience.
- identifier String
- The identifier of the override entity.
- import
From BooleanGit - import override from git
- infra
Id String - The infrastructure ID to which the overrides are associated.
- is
Force BooleanImport - force import override from remote even if same file path already exist
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- service
Id String - The service ID to which the overrides applies.
- type String
- The type of the overrides.
- yaml String
- The yaml of the overrides spec object.
Supporting Types
ServiceOverridesV2GitDetails, ServiceOverridesV2GitDetailsArgs
- Base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- Branch string
- Name of the branch.
- Commit
Message string - Commit message used for the merge commit.
- Connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- File
Path string - File path of the Entity in the repository.
- Is
Harness boolCode Repo - If the repo is in harness code
- Is
New boolBranch - If the branch being created is new
- Last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- Last
Object stringId - Last object identifier (for Github). To be provided only when updating override.
- Load
From boolCache - Load service yaml from catch
- Load
From boolFallback Branch - Load service yaml from fallback branch
- Repo
Name string - Name of the repository.
- Store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- Base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- Branch string
- Name of the branch.
- Commit
Message string - Commit message used for the merge commit.
- Connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- File
Path string - File path of the Entity in the repository.
- Is
Harness boolCode Repo - If the repo is in harness code
- Is
New boolBranch - If the branch being created is new
- Last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- Last
Object stringId - Last object identifier (for Github). To be provided only when updating override.
- Load
From boolCache - Load service yaml from catch
- Load
From boolFallback Branch - Load service yaml from fallback branch
- Repo
Name string - Name of the repository.
- Store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base
Branch String - Name of the default branch (this checks out a new branch titled by branch_name).
- branch String
- Name of the branch.
- commit
Message String - Commit message used for the merge commit.
- connector
Ref String - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path String - File path of the Entity in the repository.
- is
Harness BooleanCode Repo - If the repo is in harness code
- is
New BooleanBranch - If the branch being created is new
- last
Commit StringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- last
Object StringId - Last object identifier (for Github). To be provided only when updating override.
- load
From BooleanCache - Load service yaml from catch
- load
From BooleanFallback Branch - Load service yaml from fallback branch
- repo
Name String - Name of the repository.
- store
Type String - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- branch string
- Name of the branch.
- commit
Message string - Commit message used for the merge commit.
- connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path string - File path of the Entity in the repository.
- is
Harness booleanCode Repo - If the repo is in harness code
- is
New booleanBranch - If the branch being created is new
- last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- last
Object stringId - Last object identifier (for Github). To be provided only when updating override.
- load
From booleanCache - Load service yaml from catch
- load
From booleanFallback Branch - Load service yaml from fallback branch
- repo
Name string - Name of the repository.
- store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base_
branch str - Name of the default branch (this checks out a new branch titled by branch_name).
- branch str
- Name of the branch.
- commit_
message str - Commit message used for the merge commit.
- connector_
ref str - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file_
path str - File path of the Entity in the repository.
- is_
harness_ boolcode_ repo - If the repo is in harness code
- is_
new_ boolbranch - If the branch being created is new
- last_
commit_ strid - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- last_
object_ strid - Last object identifier (for Github). To be provided only when updating override.
- load_
from_ boolcache - Load service yaml from catch
- load_
from_ boolfallback_ branch - Load service yaml from fallback branch
- repo_
name str - Name of the repository.
- store_
type str - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base
Branch String - Name of the default branch (this checks out a new branch titled by branch_name).
- branch String
- Name of the branch.
- commit
Message String - Commit message used for the merge commit.
- connector
Ref String - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path String - File path of the Entity in the repository.
- is
Harness BooleanCode Repo - If the repo is in harness code
- is
New BooleanBranch - If the branch being created is new
- last
Commit StringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
- last
Object StringId - Last object identifier (for Github). To be provided only when updating override.
- load
From BooleanCache - Load service yaml from catch
- load
From BooleanFallback Branch - Load service yaml from fallback branch
- repo
Name String - Name of the repository.
- store
Type String - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
Import
Import account level service override
$ pulumi import harness:platform/serviceOverridesV2:ServiceOverridesV2 example <override_id>
Import org level service override
$ pulumi import harness:platform/serviceOverridesV2:ServiceOverridesV2 example <org_id>/<override_id>
Import project level service override
$ pulumi import harness:platform/serviceOverridesV2:ServiceOverridesV2 example <org_id>/<project_id>/<override_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.