1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. ServiceOverridesV2
Harness v0.4.1 published on Monday, Oct 14, 2024 by Pulumi

harness.platform.ServiceOverridesV2

Explore with Pulumi AI

harness logo
Harness v0.4.1 published on Monday, Oct 14, 2024 by Pulumi

    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=harness.platform.ServiceOverridesV2GitDetailsArgs(
            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

    The ServiceOverridesV2 resource accepts the following input properties:

    EnvId string
    The environment ID to which the overrides are associated.
    Type string
    The type of the overrides.
    ClusterId string
    The cluster ID to which the overrides are associated.
    GitDetails ServiceOverridesV2GitDetails
    Contains parameters related to creating an Entity for Git Experience.
    Identifier string
    The identifier of the override entity.
    ImportFromGit bool
    import override from git
    InfraId string
    The infrastructure ID to which the overrides are associated.
    IsForceImport bool
    force import override from remote even if same file path already exist
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ServiceId string
    The service ID to which the overrides applies.
    Yaml string
    The yaml of the overrides spec object.
    EnvId string
    The environment ID to which the overrides are associated.
    Type string
    The type of the overrides.
    ClusterId string
    The cluster ID to which the overrides are associated.
    GitDetails ServiceOverridesV2GitDetailsArgs
    Contains parameters related to creating an Entity for Git Experience.
    Identifier string
    The identifier of the override entity.
    ImportFromGit bool
    import override from git
    InfraId string
    The infrastructure ID to which the overrides are associated.
    IsForceImport bool
    force import override from remote even if same file path already exist
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ServiceId string
    The service ID to which the overrides applies.
    Yaml string
    The yaml of the overrides spec object.
    envId String
    The environment ID to which the overrides are associated.
    type String
    The type of the overrides.
    clusterId String
    The cluster ID to which the overrides are associated.
    gitDetails ServiceOverridesV2GitDetails
    Contains parameters related to creating an Entity for Git Experience.
    identifier String
    The identifier of the override entity.
    importFromGit Boolean
    import override from git
    infraId String
    The infrastructure ID to which the overrides are associated.
    isForceImport Boolean
    force import override from remote even if same file path already exist
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    serviceId String
    The service ID to which the overrides applies.
    yaml String
    The yaml of the overrides spec object.
    envId string
    The environment ID to which the overrides are associated.
    type string
    The type of the overrides.
    clusterId string
    The cluster ID to which the overrides are associated.
    gitDetails ServiceOverridesV2GitDetails
    Contains parameters related to creating an Entity for Git Experience.
    identifier string
    The identifier of the override entity.
    importFromGit boolean
    import override from git
    infraId string
    The infrastructure ID to which the overrides are associated.
    isForceImport boolean
    force import override from remote even if same file path already exist
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    serviceId 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 ServiceOverridesV2GitDetailsArgs
    Contains parameters related to creating an Entity for Git Experience.
    identifier str
    The identifier of the override entity.
    import_from_git bool
    import override from git
    infra_id str
    The infrastructure ID to which the overrides are associated.
    is_force_import bool
    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.
    envId String
    The environment ID to which the overrides are associated.
    type String
    The type of the overrides.
    clusterId String
    The cluster ID to which the overrides are associated.
    gitDetails Property Map
    Contains parameters related to creating an Entity for Git Experience.
    identifier String
    The identifier of the override entity.
    importFromGit Boolean
    import override from git
    infraId String
    The infrastructure ID to which the overrides are associated.
    isForceImport Boolean
    force import override from remote even if same file path already exist
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    serviceId 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.
    The following state arguments are supported:
    ClusterId string
    The cluster ID to which the overrides are associated.
    EnvId string
    The environment ID to which the overrides are associated.
    GitDetails ServiceOverridesV2GitDetails
    Contains parameters related to creating an Entity for Git Experience.
    Identifier string
    The identifier of the override entity.
    ImportFromGit bool
    import override from git
    InfraId string
    The infrastructure ID to which the overrides are associated.
    IsForceImport bool
    force import override from remote even if same file path already exist
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ServiceId 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.
    ClusterId string
    The cluster ID to which the overrides are associated.
    EnvId string
    The environment ID to which the overrides are associated.
    GitDetails ServiceOverridesV2GitDetailsArgs
    Contains parameters related to creating an Entity for Git Experience.
    Identifier string
    The identifier of the override entity.
    ImportFromGit bool
    import override from git
    InfraId string
    The infrastructure ID to which the overrides are associated.
    IsForceImport bool
    force import override from remote even if same file path already exist
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ServiceId 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.
    clusterId String
    The cluster ID to which the overrides are associated.
    envId String
    The environment ID to which the overrides are associated.
    gitDetails ServiceOverridesV2GitDetails
    Contains parameters related to creating an Entity for Git Experience.
    identifier String
    The identifier of the override entity.
    importFromGit Boolean
    import override from git
    infraId String
    The infrastructure ID to which the overrides are associated.
    isForceImport Boolean
    force import override from remote even if same file path already exist
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    serviceId 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.
    clusterId string
    The cluster ID to which the overrides are associated.
    envId string
    The environment ID to which the overrides are associated.
    gitDetails ServiceOverridesV2GitDetails
    Contains parameters related to creating an Entity for Git Experience.
    identifier string
    The identifier of the override entity.
    importFromGit boolean
    import override from git
    infraId string
    The infrastructure ID to which the overrides are associated.
    isForceImport boolean
    force import override from remote even if same file path already exist
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    serviceId 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 ServiceOverridesV2GitDetailsArgs
    Contains parameters related to creating an Entity for Git Experience.
    identifier str
    The identifier of the override entity.
    import_from_git bool
    import override from git
    infra_id str
    The infrastructure ID to which the overrides are associated.
    is_force_import bool
    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.
    clusterId String
    The cluster ID to which the overrides are associated.
    envId String
    The environment ID to which the overrides are associated.
    gitDetails Property Map
    Contains parameters related to creating an Entity for Git Experience.
    identifier String
    The identifier of the override entity.
    importFromGit Boolean
    import override from git
    infraId String
    The infrastructure ID to which the overrides are associated.
    isForceImport Boolean
    force import override from remote even if same file path already exist
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    serviceId 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

    BaseBranch string
    Name of the default branch (this checks out a new branch titled by branch_name).
    Branch string
    Name of the branch.
    CommitMessage string
    Commit message used for the merge commit.
    ConnectorRef 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}.
    FilePath string
    File path of the Entity in the repository.
    IsHarnessCodeRepo bool
    If the repo is in harness code
    IsNewBranch bool
    If the branch being created is new
    LastCommitId string
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
    LastObjectId string
    Last object identifier (for Github). To be provided only when updating override.
    LoadFromCache bool
    Load service yaml from catch
    LoadFromFallbackBranch bool
    Load service yaml from fallback branch
    RepoName string
    Name of the repository.
    StoreType string
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
    BaseBranch string
    Name of the default branch (this checks out a new branch titled by branch_name).
    Branch string
    Name of the branch.
    CommitMessage string
    Commit message used for the merge commit.
    ConnectorRef 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}.
    FilePath string
    File path of the Entity in the repository.
    IsHarnessCodeRepo bool
    If the repo is in harness code
    IsNewBranch bool
    If the branch being created is new
    LastCommitId string
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
    LastObjectId string
    Last object identifier (for Github). To be provided only when updating override.
    LoadFromCache bool
    Load service yaml from catch
    LoadFromFallbackBranch bool
    Load service yaml from fallback branch
    RepoName string
    Name of the repository.
    StoreType string
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
    baseBranch String
    Name of the default branch (this checks out a new branch titled by branch_name).
    branch String
    Name of the branch.
    commitMessage String
    Commit message used for the merge commit.
    connectorRef 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}.
    filePath String
    File path of the Entity in the repository.
    isHarnessCodeRepo Boolean
    If the repo is in harness code
    isNewBranch Boolean
    If the branch being created is new
    lastCommitId String
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
    lastObjectId String
    Last object identifier (for Github). To be provided only when updating override.
    loadFromCache Boolean
    Load service yaml from catch
    loadFromFallbackBranch Boolean
    Load service yaml from fallback branch
    repoName String
    Name of the repository.
    storeType String
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
    baseBranch string
    Name of the default branch (this checks out a new branch titled by branch_name).
    branch string
    Name of the branch.
    commitMessage string
    Commit message used for the merge commit.
    connectorRef 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}.
    filePath string
    File path of the Entity in the repository.
    isHarnessCodeRepo boolean
    If the repo is in harness code
    isNewBranch boolean
    If the branch being created is new
    lastCommitId string
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
    lastObjectId string
    Last object identifier (for Github). To be provided only when updating override.
    loadFromCache boolean
    Load service yaml from catch
    loadFromFallbackBranch boolean
    Load service yaml from fallback branch
    repoName string
    Name of the repository.
    storeType 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_code_repo bool
    If the repo is in harness code
    is_new_branch bool
    If the branch being created is new
    last_commit_id str
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
    last_object_id str
    Last object identifier (for Github). To be provided only when updating override.
    load_from_cache bool
    Load service yaml from catch
    load_from_fallback_branch bool
    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.
    baseBranch String
    Name of the default branch (this checks out a new branch titled by branch_name).
    branch String
    Name of the branch.
    commitMessage String
    Commit message used for the merge commit.
    connectorRef 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}.
    filePath String
    File path of the Entity in the repository.
    isHarnessCodeRepo Boolean
    If the repo is in harness code
    isNewBranch Boolean
    If the branch being created is new
    lastCommitId String
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating override.
    lastObjectId String
    Last object identifier (for Github). To be provided only when updating override.
    loadFromCache Boolean
    Load service yaml from catch
    loadFromFallbackBranch Boolean
    Load service yaml from fallback branch
    repoName String
    Name of the repository.
    storeType 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.
    harness logo
    Harness v0.4.1 published on Monday, Oct 14, 2024 by Pulumi