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[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={
"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
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.
- Fetch
Resolved boolYaml - to fetch resoled service yaml
- Force
Delete string - Enable this flag for force deletion of service
- Git
Details ServiceGit Details - 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 string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id 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.
- Fetch
Resolved boolYaml - to fetch resoled service yaml
- Force
Delete string - 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 string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id 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.
- fetch
Resolved BooleanYaml - to fetch resoled service yaml
- force
Delete String - Enable this flag for force deletion of service
- git
Details ServiceGit Details - Contains parameters related to Git Experience for remote entities
- import
From BooleanGit - import service from git
- is
Force BooleanImport - force import service from remote even if same file path already exist
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id 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.
- fetch
Resolved booleanYaml - to fetch resoled service yaml
- force
Delete string - Enable this flag for force deletion of service
- git
Details ServiceGit Details - Contains parameters related to Git Experience for remote entities
- import
From booleanGit - import service from git
- is
Force booleanImport - force import service from remote even if same file path already exist
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id 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 str - 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.
- fetch
Resolved BooleanYaml - to fetch resoled service yaml
- force
Delete String - Enable this flag for force deletion of service
- git
Details Property Map - Contains parameters related to Git Experience for remote entities
- import
From BooleanGit - import service from git
- is
Force BooleanImport - force import service from remote even if same file path already exist
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id 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[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.
- Description string
- Description of the resource.
- Fetch
Resolved boolYaml - to fetch resoled service yaml
- Force
Delete string - Enable this flag for force deletion of service
- Git
Details ServiceGit Details - Contains parameters related to Git Experience for remote entities
- Identifier string
- 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 string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id 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.
- Fetch
Resolved boolYaml - to fetch resoled service yaml
- Force
Delete string - Enable this flag for force deletion of service
- Git
Details ServiceGit Details Args - Contains parameters related to Git Experience for remote entities
- Identifier string
- 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 string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id 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.
- fetch
Resolved BooleanYaml - to fetch resoled service yaml
- force
Delete String - Enable this flag for force deletion of service
- git
Details ServiceGit Details - Contains parameters related to Git Experience for remote entities
- identifier String
- Unique identifier of the resource.
- import
From BooleanGit - import service from git
- is
Force BooleanImport - force import service from remote even if same file path already exist
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id 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.
- fetch
Resolved booleanYaml - to fetch resoled service yaml
- force
Delete string - Enable this flag for force deletion of service
- git
Details ServiceGit Details - Contains parameters related to Git Experience for remote entities
- identifier string
- Unique identifier of the resource.
- import
From booleanGit - import service from git
- is
Force booleanImport - force import service from remote even if same file path already exist
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id 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 str - 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.
- fetch
Resolved BooleanYaml - to fetch resoled service yaml
- force
Delete String - Enable this flag for force deletion of service
- git
Details Property Map - Contains parameters related to Git Experience for remote entities
- identifier String
- Unique identifier of the resource.
- import
From BooleanGit - import service from git
- is
Force BooleanImport - force import service from remote even if same file path already exist
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id 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
- Base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- Branch string
- Name of the branch.
- Commit
Message string - Commit message used for the merge commit.
- Connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- File
Path string - File path of the Entity in the repository.
- Is
Harness boolCode Repo - If the repo is in harness code
- Is
New boolBranch - If the branch being created is new
- Last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- Last
Object stringId - 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 string - Name of the repository.
- Store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- Base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- Branch string
- Name of the branch.
- Commit
Message string - Commit message used for the merge commit.
- Connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- File
Path string - File path of the Entity in the repository.
- Is
Harness boolCode Repo - If the repo is in harness code
- Is
New boolBranch - If the branch being created is new
- Last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- Last
Object stringId - 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 string - Name of the repository.
- Store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base
Branch String - Name of the default branch (this checks out a new branch titled by branch_name).
- branch String
- Name of the branch.
- commit
Message String - Commit message used for the merge commit.
- connector
Ref String - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path String - File path of the Entity in the repository.
- is
Harness BooleanCode Repo - If the repo is in harness code
- is
New BooleanBranch - If the branch being created is new
- last
Commit StringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- last
Object StringId - Last object identifier (for Github). To be provided only when updating Pipeline.
- load
From BooleanCache - Load service yaml from catch
- load
From BooleanFallback Branch - Load service yaml from fallback branch
- repo
Name String - Name of the repository.
- store
Type String - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base
Branch string - Name of the default branch (this checks out a new branch titled by branch_name).
- branch string
- Name of the branch.
- commit
Message string - Commit message used for the merge commit.
- connector
Ref string - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path string - File path of the Entity in the repository.
- is
Harness booleanCode Repo - If the repo is in harness code
- is
New booleanBranch - If the branch being created is new
- last
Commit stringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- last
Object stringId - Last object identifier (for Github). To be provided only when updating Pipeline.
- load
From booleanCache - Load service yaml from catch
- load
From booleanFallback Branch - Load service yaml from fallback branch
- repo
Name string - Name of the repository.
- store
Type string - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
- base_
branch str - Name of the default branch (this checks out a new branch titled by branch_name).
- branch str
- Name of the branch.
- commit_
message str - Commit message used for the merge commit.
- connector_
ref str - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file_
path str - File path of the Entity in the repository.
- is_
harness_ boolcode_ repo - If the repo is in harness code
- is_
new_ boolbranch - If the branch being created is new
- last_
commit_ strid - Last commit identifier (for Git Repositories other than Github). To be provided only when updating 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.
- base
Branch String - Name of the default branch (this checks out a new branch titled by branch_name).
- branch String
- Name of the branch.
- commit
Message String - Commit message used for the merge commit.
- connector
Ref String - Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
- file
Path String - File path of the Entity in the repository.
- is
Harness BooleanCode Repo - If the repo is in harness code
- is
New BooleanBranch - If the branch being created is new
- last
Commit StringId - Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
- last
Object StringId - Last object identifier (for Github). To be provided only when updating Pipeline.
- load
From BooleanCache - Load service yaml from catch
- load
From BooleanFallback Branch - Load service yaml from fallback branch
- repo
Name String - Name of the repository.
- store
Type String - Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
Import
Import account level service
$ 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.