harness.platform.Service
Explore with Pulumi AI
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[bool] = 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 = false,
    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.Bool(false),
	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(false)
    .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=False,
    git_details={
        "base_branch": "string",
        "branch": "string",
        "commit_message": "string",
        "connector_ref": "string",
        "file_path": "string",
        "is_harness_code_repo": False,
        "is_new_branch": False,
        "last_commit_id": "string",
        "last_object_id": "string",
        "load_from_cache": False,
        "load_from_fallback_branch": False,
        "repo_name": "string",
        "store_type": "string",
    },
    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: false,
    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: false
    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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Service resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- Description string
- Description of the resource.
- FetchResolved boolYaml 
- to fetch resoled service yaml
- ForceDelete bool
- Enable this flag for force deletion of service
- GitDetails ServiceGit Details 
- Contains parameters related to Git Experience for remote entities
- ImportFrom boolGit 
- import service from git
- IsForce boolImport 
- 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.
- 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.
- FetchResolved boolYaml 
- to fetch resoled service yaml
- ForceDelete bool
- Enable this flag for force deletion of service
- GitDetails ServiceGit Details Args 
- Contains parameters related to Git Experience for remote entities
- ImportFrom boolGit 
- import service from git
- IsForce boolImport 
- 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.
- []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.
- fetchResolved BooleanYaml 
- to fetch resoled service yaml
- forceDelete Boolean
- Enable this flag for force deletion of service
- gitDetails ServiceGit Details 
- Contains parameters related to Git Experience for remote entities
- importFrom BooleanGit 
- import service from git
- isForce BooleanImport 
- 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.
- 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.
- fetchResolved booleanYaml 
- to fetch resoled service yaml
- forceDelete boolean
- Enable this flag for force deletion of service
- gitDetails ServiceGit Details 
- Contains parameters related to Git Experience for remote entities
- importFrom booleanGit 
- import service from git
- isForce booleanImport 
- 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.
- 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_ boolyaml 
- to fetch resoled service yaml
- force_delete bool
- Enable this flag for force deletion of service
- git_details ServiceGit Details Args 
- Contains parameters related to Git Experience for remote entities
- import_from_ boolgit 
- import service from git
- is_force_ boolimport 
- 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.
- 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.
- fetchResolved BooleanYaml 
- to fetch resoled service yaml
- forceDelete Boolean
- Enable this flag for force deletion of service
- gitDetails Property Map
- Contains parameters related to Git Experience for remote entities
- importFrom BooleanGit 
- import service from git
- isForce BooleanImport 
- 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.
- 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[bool] = 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) -> Servicefunc 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)resources:  _:    type: harness:platform:Service    get:      id: ${id}- 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.
- Description string
- Description of the resource.
- FetchResolved boolYaml 
- to fetch resoled service yaml
- ForceDelete bool
- Enable this flag for force deletion of service
- GitDetails ServiceGit Details 
- Contains parameters related to Git Experience for remote entities
- Identifier string
- Unique identifier of the resource.
- ImportFrom boolGit 
- import service from git
- IsForce boolImport 
- 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.
- 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.
- FetchResolved boolYaml 
- to fetch resoled service yaml
- ForceDelete bool
- Enable this flag for force deletion of service
- GitDetails ServiceGit Details Args 
- Contains parameters related to Git Experience for remote entities
- Identifier string
- Unique identifier of the resource.
- ImportFrom boolGit 
- import service from git
- IsForce boolImport 
- 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.
- []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.
- fetchResolved BooleanYaml 
- to fetch resoled service yaml
- forceDelete Boolean
- Enable this flag for force deletion of service
- gitDetails ServiceGit Details 
- Contains parameters related to Git Experience for remote entities
- identifier String
- Unique identifier of the resource.
- importFrom BooleanGit 
- import service from git
- isForce BooleanImport 
- 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.
- 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.
- fetchResolved booleanYaml 
- to fetch resoled service yaml
- forceDelete boolean
- Enable this flag for force deletion of service
- gitDetails ServiceGit Details 
- Contains parameters related to Git Experience for remote entities
- identifier string
- Unique identifier of the resource.
- importFrom booleanGit 
- import service from git
- isForce booleanImport 
- 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.
- 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_ boolyaml 
- to fetch resoled service yaml
- force_delete bool
- Enable this flag for force deletion of service
- git_details ServiceGit Details Args 
- Contains parameters related to Git Experience for remote entities
- identifier str
- Unique identifier of the resource.
- import_from_ boolgit 
- import service from git
- is_force_ boolimport 
- 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.
- 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.
- fetchResolved BooleanYaml 
- to fetch resoled service yaml
- forceDelete Boolean
- 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.
- importFrom BooleanGit 
- import service from git
- isForce BooleanImport 
- 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.
- 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.
- IsHarness boolCode Repo 
- If the repo is in harness code
- IsNew boolBranch 
- If the branch being created is new
- LastCommit stringId 
- Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- LastObject stringId 
- Last object identifier (for Github). To be provided only when updating Pipeline.
- LoadFrom boolCache 
- Load service yaml from catch
- LoadFrom boolFallback Branch 
- 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.
- IsHarness boolCode Repo 
- If the repo is in harness code
- IsNew boolBranch 
- If the branch being created is new
- LastCommit stringId 
- Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- LastObject stringId 
- Last object identifier (for Github). To be provided only when updating Pipeline.
- LoadFrom boolCache 
- Load service yaml from catch
- LoadFrom boolFallback Branch 
- 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.
- isHarness BooleanCode Repo 
- If the repo is in harness code
- isNew BooleanBranch 
- If the branch being created is new
- lastCommit StringId 
- Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- lastObject StringId 
- Last object identifier (for Github). To be provided only when updating Pipeline.
- loadFrom BooleanCache 
- Load service yaml from catch
- loadFrom BooleanFallback Branch 
- 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.
- isHarness booleanCode Repo 
- If the repo is in harness code
- isNew booleanBranch 
- If the branch being created is new
- lastCommit stringId 
- Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- lastObject stringId 
- Last object identifier (for Github). To be provided only when updating Pipeline.
- loadFrom booleanCache 
- Load service yaml from catch
- loadFrom booleanFallback Branch 
- 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_ boolcode_ repo 
- If the repo is in harness code
- is_new_ boolbranch 
- If the branch being created is new
- last_commit_ strid 
- Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- last_object_ strid 
- Last object identifier (for Github). To be provided only when updating Pipeline.
- load_from_ boolcache 
- Load service yaml from catch
- load_from_ boolfallback_ branch 
- Load service yaml from fallback branch
- repo_name str
- Name of the repository.
- store_type str
- Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- 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.
- isHarness BooleanCode Repo 
- If the repo is in harness code
- isNew BooleanBranch 
- If the branch being created is new
- lastCommit StringId 
- Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- lastObject StringId 
- Last object identifier (for Github). To be provided only when updating Pipeline.
- loadFrom BooleanCache 
- Load service yaml from catch
- loadFrom BooleanFallback Branch 
- 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 harnessTerraform Provider.
