1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. Service
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.platform.Service

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

    Resource for creating a Harness service.

    Example to create Service at different levels (Org, Project, Account)

    Account Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.Service("example", {
        identifier: "identifier",
        name: "name",
        description: "test",
        yaml: `service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.Service("example",
        identifier="identifier",
        name="name",
        description="test",
        yaml="""service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: 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.NewService(ctx, "example", &platform.ServiceArgs{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("test"),
    			Yaml: pulumi.String(`service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: 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 example = new Harness.Platform.Service("example", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "test",
            Yaml = @"service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.Service;
    import com.pulumi.harness.platform.ServiceArgs;
    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 example = new Service("example", ServiceArgs.builder()
                .identifier("identifier")
                .name("name")
                .description("test")
                .yaml("""
    service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:Service
        properties:
          identifier: identifier
          name: name
          description: test
          yaml: |
            service:
              name: name
              identifier: identifier
              serviceDefinition:
                spec:
                  manifests:
                    - manifest:
                        identifier: manifest1
                        type: K8sManifest
                        spec:
                          store:
                            type: Github
                            spec:
                              connectorRef: <+input>
                              gitFetchType: Branch
                              paths:
                                - files1
                              repoName: <+input>
                              branch: master
                          skipResourceVersioning: false
                  configFiles:
                    - configFile:
                        identifier: configFile1
                        spec:
                          store:
                            type: Harness
                            spec:
                              files:
                                - <+org.description>
                  variables:
                    - name: var1
                      type: String
                      value: val1
                    - name: var2
                      type: String
                      value: val2
                type: Kubernetes
              gitOpsEnabled: false        
    

    Org Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.Service("example", {
        identifier: "identifier",
        name: "name",
        description: "test",
        orgId: "org_id",
        yaml: `service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.Service("example",
        identifier="identifier",
        name="name",
        description="test",
        org_id="org_id",
        yaml="""service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: 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.NewService(ctx, "example", &platform.ServiceArgs{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("test"),
    			OrgId:       pulumi.String("org_id"),
    			Yaml: pulumi.String(`service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: 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 example = new Harness.Platform.Service("example", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "test",
            OrgId = "org_id",
            Yaml = @"service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.Service;
    import com.pulumi.harness.platform.ServiceArgs;
    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 example = new Service("example", ServiceArgs.builder()
                .identifier("identifier")
                .name("name")
                .description("test")
                .orgId("org_id")
                .yaml("""
    service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:Service
        properties:
          identifier: identifier
          name: name
          description: test
          orgId: org_id
          yaml: |
            service:
              name: name
              identifier: identifier
              serviceDefinition:
                spec:
                  manifests:
                    - manifest:
                        identifier: manifest1
                        type: K8sManifest
                        spec:
                          store:
                            type: Github
                            spec:
                              connectorRef: <+input>
                              gitFetchType: Branch
                              paths:
                                - files1
                              repoName: <+input>
                              branch: master
                          skipResourceVersioning: false
                  configFiles:
                    - configFile:
                        identifier: configFile1
                        spec:
                          store:
                            type: Harness
                            spec:
                              files:
                                - <+org.description>
                  variables:
                    - name: var1
                      type: String
                      value: val1
                    - name: var2
                      type: String
                      value: val2
                type: Kubernetes
              gitOpsEnabled: false        
    

    Project Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.Service("example", {
        identifier: "identifier",
        name: "name",
        description: "test",
        orgId: "org_id",
        projectId: "project_id",
        yaml: `service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.Service("example",
        identifier="identifier",
        name="name",
        description="test",
        org_id="org_id",
        project_id="project_id",
        yaml="""service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: 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.NewService(ctx, "example", &platform.ServiceArgs{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("test"),
    			OrgId:       pulumi.String("org_id"),
    			ProjectId:   pulumi.String("project_id"),
    			Yaml: pulumi.String(`service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: 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 example = new Harness.Platform.Service("example", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "test",
            OrgId = "org_id",
            ProjectId = "project_id",
            Yaml = @"service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.Service;
    import com.pulumi.harness.platform.ServiceArgs;
    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 example = new Service("example", ServiceArgs.builder()
                .identifier("identifier")
                .name("name")
                .description("test")
                .orgId("org_id")
                .projectId("project_id")
                .yaml("""
    service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:Service
        properties:
          identifier: identifier
          name: name
          description: test
          orgId: org_id
          projectId: project_id
          yaml: |
            service:
              name: name
              identifier: identifier
              serviceDefinition:
                spec:
                  manifests:
                    - manifest:
                        identifier: manifest1
                        type: K8sManifest
                        spec:
                          store:
                            type: Github
                            spec:
                              connectorRef: <+input>
                              gitFetchType: Branch
                              paths:
                                - files1
                              repoName: <+input>
                              branch: master
                          skipResourceVersioning: false
                  configFiles:
                    - configFile:
                        identifier: configFile1
                        spec:
                          store:
                            type: Harness
                            spec:
                              files:
                                - <+org.description>
                  variables:
                    - name: var1
                      type: String
                      value: val1
                    - name: var2
                      type: String
                      value: val2
                type: Kubernetes
              gitOpsEnabled: false        
    

    Creating Remote Service

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.Service("example", {
        identifier: "identifier",
        name: "name",
        description: "test",
        orgId: "org_id",
        projectId: "project_id",
        gitDetails: {
            storeType: "REMOTE",
            connectorRef: "connector_ref",
            repoName: "repo_name",
            filePath: "file_path",
            branch: "branch",
        },
        yaml: `service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.Service("example",
        identifier="identifier",
        name="name",
        description="test",
        org_id="org_id",
        project_id="project_id",
        git_details={
            "store_type": "REMOTE",
            "connector_ref": "connector_ref",
            "repo_name": "repo_name",
            "file_path": "file_path",
            "branch": "branch",
        },
        yaml="""service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: 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.NewService(ctx, "example", &platform.ServiceArgs{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("test"),
    			OrgId:       pulumi.String("org_id"),
    			ProjectId:   pulumi.String("project_id"),
    			GitDetails: &platform.ServiceGitDetailsArgs{
    				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(`service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: 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 example = new Harness.Platform.Service("example", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "test",
            OrgId = "org_id",
            ProjectId = "project_id",
            GitDetails = new Harness.Platform.Inputs.ServiceGitDetailsArgs
            {
                StoreType = "REMOTE",
                ConnectorRef = "connector_ref",
                RepoName = "repo_name",
                FilePath = "file_path",
                Branch = "branch",
            },
            Yaml = @"service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.Service;
    import com.pulumi.harness.platform.ServiceArgs;
    import com.pulumi.harness.platform.inputs.ServiceGitDetailsArgs;
    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 example = new Service("example", ServiceArgs.builder()
                .identifier("identifier")
                .name("name")
                .description("test")
                .orgId("org_id")
                .projectId("project_id")
                .gitDetails(ServiceGitDetailsArgs.builder()
                    .storeType("REMOTE")
                    .connectorRef("connector_ref")
                    .repoName("repo_name")
                    .filePath("file_path")
                    .branch("branch")
                    .build())
                .yaml("""
    service:
      name: name
      identifier: identifier
      serviceDefinition:
        spec:
          manifests:
            - manifest:
                identifier: manifest1
                type: K8sManifest
                spec:
                  store:
                    type: Github
                    spec:
                      connectorRef: <+input>
                      gitFetchType: Branch
                      paths:
                        - files1
                      repoName: <+input>
                      branch: master
                  skipResourceVersioning: false
          configFiles:
            - configFile:
                identifier: configFile1
                spec:
                  store:
                    type: Harness
                    spec:
                      files:
                        - <+org.description>
          variables:
            - name: var1
              type: String
              value: val1
            - name: var2
              type: String
              value: val2
        type: Kubernetes
      gitOpsEnabled: false
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:Service
        properties:
          identifier: identifier
          name: name
          description: test
          orgId: org_id
          projectId: project_id
          gitDetails:
            storeType: REMOTE
            connectorRef: connector_ref
            repoName: repo_name
            filePath: file_path
            branch: branch
          yaml: |
            service:
              name: name
              identifier: identifier
              serviceDefinition:
                spec:
                  manifests:
                    - manifest:
                        identifier: manifest1
                        type: K8sManifest
                        spec:
                          store:
                            type: Github
                            spec:
                              connectorRef: <+input>
                              gitFetchType: Branch
                              paths:
                                - files1
                              repoName: <+input>
                              branch: master
                          skipResourceVersioning: false
                  configFiles:
                    - configFile:
                        identifier: configFile1
                        spec:
                          store:
                            type: Harness
                            spec:
                              files:
                                - <+org.description>
                  variables:
                    - name: var1
                      type: String
                      value: val1
                    - name: var2
                      type: String
                      value: val2
                type: Kubernetes
              gitOpsEnabled: false        
    

    Importing Service From Git

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.Service("example", {
        identifier: "identifier",
        name: "name",
        importFromGit: true,
        gitDetails: {
            storeType: "REMOTE",
            connectorRef: "connector_ref",
            repoName: "repo_name",
            filePath: "file_path",
            branch: "branch",
        },
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.Service("example",
        identifier="identifier",
        name="name",
        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.NewService(ctx, "example", &platform.ServiceArgs{
    			Identifier:    pulumi.String("identifier"),
    			Name:          pulumi.String("name"),
    			ImportFromGit: pulumi.Bool(true),
    			GitDetails: &platform.ServiceGitDetailsArgs{
    				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 example = new Harness.Platform.Service("example", new()
        {
            Identifier = "identifier",
            Name = "name",
            ImportFromGit = true,
            GitDetails = new Harness.Platform.Inputs.ServiceGitDetailsArgs
            {
                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.Service;
    import com.pulumi.harness.platform.ServiceArgs;
    import com.pulumi.harness.platform.inputs.ServiceGitDetailsArgs;
    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 example = new Service("example", ServiceArgs.builder()
                .identifier("identifier")
                .name("name")
                .importFromGit("true")
                .gitDetails(ServiceGitDetailsArgs.builder()
                    .storeType("REMOTE")
                    .connectorRef("connector_ref")
                    .repoName("repo_name")
                    .filePath("file_path")
                    .branch("branch")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:Service
        properties:
          identifier: identifier
          name: name
          importFromGit: 'true'
          gitDetails:
            storeType: REMOTE
            connectorRef: connector_ref
            repoName: repo_name
            filePath: file_path
            branch: branch
    

    Create Service Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: ServiceArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                identifier: Optional[str] = None,
                description: Optional[str] = None,
                fetch_resolved_yaml: Optional[bool] = None,
                force_delete: Optional[str] = None,
                git_details: Optional[ServiceGitDetailsArgs] = None,
                import_from_git: Optional[bool] = None,
                is_force_import: Optional[bool] = None,
                name: Optional[str] = None,
                org_id: Optional[str] = None,
                project_id: Optional[str] = None,
                tags: Optional[Sequence[str]] = None,
                yaml: Optional[str] = None)
    func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: harness:platform:Service
    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 ServiceArgs
    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 ServiceArgs
    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 ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    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 serviceResource = new Harness.Platform.Service("serviceResource", new()
    {
        Identifier = "string",
        Description = "string",
        FetchResolvedYaml = false,
        ForceDelete = "string",
        GitDetails = new Harness.Platform.Inputs.ServiceGitDetailsArgs
        {
            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",
        },
        ImportFromGit = false,
        IsForceImport = false,
        Name = "string",
        OrgId = "string",
        ProjectId = "string",
        Tags = new[]
        {
            "string",
        },
        Yaml = "string",
    });
    
    example, err := platform.NewService(ctx, "serviceResource", &platform.ServiceArgs{
    	Identifier:        pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	FetchResolvedYaml: pulumi.Bool(false),
    	ForceDelete:       pulumi.String("string"),
    	GitDetails: &platform.ServiceGitDetailsArgs{
    		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"),
    	},
    	ImportFromGit: pulumi.Bool(false),
    	IsForceImport: pulumi.Bool(false),
    	Name:          pulumi.String("string"),
    	OrgId:         pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Yaml: pulumi.String("string"),
    })
    
    var serviceResource = new Service("serviceResource", ServiceArgs.builder()
        .identifier("string")
        .description("string")
        .fetchResolvedYaml(false)
        .forceDelete("string")
        .gitDetails(ServiceGitDetailsArgs.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())
        .importFromGit(false)
        .isForceImport(false)
        .name("string")
        .orgId("string")
        .projectId("string")
        .tags("string")
        .yaml("string")
        .build());
    
    service_resource = harness.platform.Service("serviceResource",
        identifier="string",
        description="string",
        fetch_resolved_yaml=False,
        force_delete="string",
        git_details=harness.platform.ServiceGitDetailsArgs(
            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",
        ),
        import_from_git=False,
        is_force_import=False,
        name="string",
        org_id="string",
        project_id="string",
        tags=["string"],
        yaml="string")
    
    const serviceResource = new harness.platform.Service("serviceResource", {
        identifier: "string",
        description: "string",
        fetchResolvedYaml: false,
        forceDelete: "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",
        },
        importFromGit: false,
        isForceImport: false,
        name: "string",
        orgId: "string",
        projectId: "string",
        tags: ["string"],
        yaml: "string",
    });
    
    type: harness:platform:Service
    properties:
        description: string
        fetchResolvedYaml: false
        forceDelete: 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
        isForceImport: false
        name: string
        orgId: string
        projectId: string
        tags:
            - string
        yaml: string
    

    Service 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 Service resource accepts the following input properties:

    Identifier string
    Unique identifier of the resource.
    Description string
    Description of the resource.
    FetchResolvedYaml bool
    to fetch resoled service yaml
    ForceDelete string
    Enable this flag for force deletion of service
    GitDetails ServiceGitDetails
    Contains parameters related to Git Experience for remote entities
    ImportFromGit bool
    import service from git
    IsForceImport bool
    force import service from remote even if same file path already exist
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags List<string>
    Tags to associate with the resource.
    Yaml string
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    Identifier string
    Unique identifier of the resource.
    Description string
    Description of the resource.
    FetchResolvedYaml bool
    to fetch resoled service yaml
    ForceDelete string
    Enable this flag for force deletion of service
    GitDetails ServiceGitDetailsArgs
    Contains parameters related to Git Experience for remote entities
    ImportFromGit bool
    import service from git
    IsForceImport bool
    force import service from remote even if same file path already exist
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags []string
    Tags to associate with the resource.
    Yaml string
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    identifier String
    Unique identifier of the resource.
    description String
    Description of the resource.
    fetchResolvedYaml Boolean
    to fetch resoled service yaml
    forceDelete String
    Enable this flag for force deletion of service
    gitDetails ServiceGitDetails
    Contains parameters related to Git Experience for remote entities
    importFromGit Boolean
    import service from git
    isForceImport Boolean
    force import service from remote even if same file path already exist
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.
    yaml String
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    identifier string
    Unique identifier of the resource.
    description string
    Description of the resource.
    fetchResolvedYaml boolean
    to fetch resoled service yaml
    forceDelete string
    Enable this flag for force deletion of service
    gitDetails ServiceGitDetails
    Contains parameters related to Git Experience for remote entities
    importFromGit boolean
    import service from git
    isForceImport boolean
    force import service from remote even if same file path already exist
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    tags string[]
    Tags to associate with the resource.
    yaml string
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    identifier str
    Unique identifier of the resource.
    description str
    Description of the resource.
    fetch_resolved_yaml bool
    to fetch resoled service yaml
    force_delete str
    Enable this flag for force deletion of service
    git_details ServiceGitDetailsArgs
    Contains parameters related to Git Experience for remote entities
    import_from_git bool
    import service from git
    is_force_import bool
    force import service from remote even if same file path already exist
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    tags Sequence[str]
    Tags to associate with the resource.
    yaml str
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    identifier String
    Unique identifier of the resource.
    description String
    Description of the resource.
    fetchResolvedYaml Boolean
    to fetch resoled service yaml
    forceDelete String
    Enable this flag for force deletion of service
    gitDetails Property Map
    Contains parameters related to Git Experience for remote entities
    importFromGit Boolean
    import service from git
    isForceImport Boolean
    force import service from remote even if same file path already exist
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.
    yaml String
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Service 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 Service Resource

    Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Service
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            fetch_resolved_yaml: Optional[bool] = None,
            force_delete: Optional[str] = None,
            git_details: Optional[ServiceGitDetailsArgs] = None,
            identifier: Optional[str] = None,
            import_from_git: Optional[bool] = None,
            is_force_import: Optional[bool] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            yaml: Optional[str] = None) -> Service
    func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
    public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
    public static Service get(String name, Output<String> id, ServiceState 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:
    Description string
    Description of the resource.
    FetchResolvedYaml bool
    to fetch resoled service yaml
    ForceDelete string
    Enable this flag for force deletion of service
    GitDetails ServiceGitDetails
    Contains parameters related to Git Experience for remote entities
    Identifier string
    Unique identifier of the resource.
    ImportFromGit bool
    import service from git
    IsForceImport bool
    force import service from remote even if same file path already exist
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags List<string>
    Tags to associate with the resource.
    Yaml string
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    Description string
    Description of the resource.
    FetchResolvedYaml bool
    to fetch resoled service yaml
    ForceDelete string
    Enable this flag for force deletion of service
    GitDetails ServiceGitDetailsArgs
    Contains parameters related to Git Experience for remote entities
    Identifier string
    Unique identifier of the resource.
    ImportFromGit bool
    import service from git
    IsForceImport bool
    force import service from remote even if same file path already exist
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags []string
    Tags to associate with the resource.
    Yaml string
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    description String
    Description of the resource.
    fetchResolvedYaml Boolean
    to fetch resoled service yaml
    forceDelete String
    Enable this flag for force deletion of service
    gitDetails ServiceGitDetails
    Contains parameters related to Git Experience for remote entities
    identifier String
    Unique identifier of the resource.
    importFromGit Boolean
    import service from git
    isForceImport Boolean
    force import service from remote even if same file path already exist
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.
    yaml String
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    description string
    Description of the resource.
    fetchResolvedYaml boolean
    to fetch resoled service yaml
    forceDelete string
    Enable this flag for force deletion of service
    gitDetails ServiceGitDetails
    Contains parameters related to Git Experience for remote entities
    identifier string
    Unique identifier of the resource.
    importFromGit boolean
    import service from git
    isForceImport boolean
    force import service from remote even if same file path already exist
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    tags string[]
    Tags to associate with the resource.
    yaml string
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    description str
    Description of the resource.
    fetch_resolved_yaml bool
    to fetch resoled service yaml
    force_delete str
    Enable this flag for force deletion of service
    git_details ServiceGitDetailsArgs
    Contains parameters related to Git Experience for remote entities
    identifier str
    Unique identifier of the resource.
    import_from_git bool
    import service from git
    is_force_import bool
    force import service from remote even if same file path already exist
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    tags Sequence[str]
    Tags to associate with the resource.
    yaml str
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    description String
    Description of the resource.
    fetchResolvedYaml Boolean
    to fetch resoled service yaml
    forceDelete String
    Enable this flag for force deletion of service
    gitDetails Property Map
    Contains parameters related to Git Experience for remote entities
    identifier String
    Unique identifier of the resource.
    importFromGit Boolean
    import service from git
    isForceImport Boolean
    force import service from remote even if same file path already exist
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.
    yaml String
    Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    Supporting Types

    ServiceGitDetails, ServiceGitDetailsArgs

    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 Pipeline.
    LastObjectId string
    Last object identifier (for Github). To be provided only when updating Pipeline.
    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 Pipeline.
    LastObjectId string
    Last object identifier (for Github). To be provided only when updating Pipeline.
    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 Pipeline.
    lastObjectId String
    Last object identifier (for Github). To be provided only when updating Pipeline.
    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 Pipeline.
    lastObjectId string
    Last object identifier (for Github). To be provided only when updating Pipeline.
    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 Pipeline.
    last_object_id str
    Last object identifier (for Github). To be provided only when updating Pipeline.
    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 Pipeline.
    lastObjectId String
    Last object identifier (for Github). To be provided only when updating Pipeline.
    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

    $ pulumi import harness:platform/service:Service example <service_id>
    

    Import org level service

    $ pulumi import harness:platform/service:Service example <org_id>/<service_id>
    

    Import project level service

    $ pulumi import harness:platform/service:Service example <org_id>/<project_id>/<service_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.3.2 published on Monday, Sep 16, 2024 by Pulumi