harness.platform.GitopsAppProjectMapping
Explore with Pulumi AI
Resource for managing Harness GitOps Application Project Mappings.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = new harness.platform.GitopsAppProjectMapping("example", {
accountId: "account_id",
orgId: "organization_id",
projectId: "project_id",
agentId: "agent_id",
argoProjectName: "argoProjectName",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.GitopsAppProjectMapping("example",
account_id="account_id",
org_id="organization_id",
project_id="project_id",
agent_id="agent_id",
argo_project_name="argoProjectName")
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.NewGitopsAppProjectMapping(ctx, "example", &platform.GitopsAppProjectMappingArgs{
AccountId: pulumi.String("account_id"),
OrgId: pulumi.String("organization_id"),
ProjectId: pulumi.String("project_id"),
AgentId: pulumi.String("agent_id"),
ArgoProjectName: pulumi.String("argoProjectName"),
})
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.GitopsAppProjectMapping("example", new()
{
AccountId = "account_id",
OrgId = "organization_id",
ProjectId = "project_id",
AgentId = "agent_id",
ArgoProjectName = "argoProjectName",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.GitopsAppProjectMapping;
import com.pulumi.harness.platform.GitopsAppProjectMappingArgs;
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 GitopsAppProjectMapping("example", GitopsAppProjectMappingArgs.builder()
.accountId("account_id")
.orgId("organization_id")
.projectId("project_id")
.agentId("agent_id")
.argoProjectName("argoProjectName")
.build());
}
}
resources:
example:
type: harness:platform:GitopsAppProjectMapping
properties:
accountId: account_id
orgId: organization_id
projectId: project_id
agentId: agent_id
argoProjectName: argoProjectName
Create GitopsAppProjectMapping Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GitopsAppProjectMapping(name: string, args: GitopsAppProjectMappingArgs, opts?: CustomResourceOptions);
@overload
def GitopsAppProjectMapping(resource_name: str,
args: GitopsAppProjectMappingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GitopsAppProjectMapping(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
argo_project_name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None)
func NewGitopsAppProjectMapping(ctx *Context, name string, args GitopsAppProjectMappingArgs, opts ...ResourceOption) (*GitopsAppProjectMapping, error)
public GitopsAppProjectMapping(string name, GitopsAppProjectMappingArgs args, CustomResourceOptions? opts = null)
public GitopsAppProjectMapping(String name, GitopsAppProjectMappingArgs args)
public GitopsAppProjectMapping(String name, GitopsAppProjectMappingArgs args, CustomResourceOptions options)
type: harness:platform:GitopsAppProjectMapping
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 GitopsAppProjectMappingArgs
- 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 GitopsAppProjectMappingArgs
- 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 GitopsAppProjectMappingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitopsAppProjectMappingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitopsAppProjectMappingArgs
- 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 gitopsAppProjectMappingResource = new Harness.Platform.GitopsAppProjectMapping("gitopsAppProjectMappingResource", new()
{
AccountId = "string",
AgentId = "string",
ArgoProjectName = "string",
OrgId = "string",
ProjectId = "string",
});
example, err := platform.NewGitopsAppProjectMapping(ctx, "gitopsAppProjectMappingResource", &platform.GitopsAppProjectMappingArgs{
AccountId: pulumi.String("string"),
AgentId: pulumi.String("string"),
ArgoProjectName: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
})
var gitopsAppProjectMappingResource = new GitopsAppProjectMapping("gitopsAppProjectMappingResource", GitopsAppProjectMappingArgs.builder()
.accountId("string")
.agentId("string")
.argoProjectName("string")
.orgId("string")
.projectId("string")
.build());
gitops_app_project_mapping_resource = harness.platform.GitopsAppProjectMapping("gitopsAppProjectMappingResource",
account_id="string",
agent_id="string",
argo_project_name="string",
org_id="string",
project_id="string")
const gitopsAppProjectMappingResource = new harness.platform.GitopsAppProjectMapping("gitopsAppProjectMappingResource", {
accountId: "string",
agentId: "string",
argoProjectName: "string",
orgId: "string",
projectId: "string",
});
type: harness:platform:GitopsAppProjectMapping
properties:
accountId: string
agentId: string
argoProjectName: string
orgId: string
projectId: string
GitopsAppProjectMapping 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 GitopsAppProjectMapping resource accepts the following input properties:
- Account
Id string - Account identifier of the GitOps agent's Application Project.
- Agent
Id string - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- Argo
Project stringName - ArgoCD Project name which is to be mapped to the Harness project.
- Org
Id string - Organization identifier of the GitOps agent's Application Project.
- Project
Id string - Project identifier of the GitOps agent's Application Project.
- Account
Id string - Account identifier of the GitOps agent's Application Project.
- Agent
Id string - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- Argo
Project stringName - ArgoCD Project name which is to be mapped to the Harness project.
- Org
Id string - Organization identifier of the GitOps agent's Application Project.
- Project
Id string - Project identifier of the GitOps agent's Application Project.
- account
Id String - Account identifier of the GitOps agent's Application Project.
- agent
Id String - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- argo
Project StringName - ArgoCD Project name which is to be mapped to the Harness project.
- org
Id String - Organization identifier of the GitOps agent's Application Project.
- project
Id String - Project identifier of the GitOps agent's Application Project.
- account
Id string - Account identifier of the GitOps agent's Application Project.
- agent
Id string - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- argo
Project stringName - ArgoCD Project name which is to be mapped to the Harness project.
- org
Id string - Organization identifier of the GitOps agent's Application Project.
- project
Id string - Project identifier of the GitOps agent's Application Project.
- account_
id str - Account identifier of the GitOps agent's Application Project.
- agent_
id str - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- argo_
project_ strname - ArgoCD Project name which is to be mapped to the Harness project.
- org_
id str - Organization identifier of the GitOps agent's Application Project.
- project_
id str - Project identifier of the GitOps agent's Application Project.
- account
Id String - Account identifier of the GitOps agent's Application Project.
- agent
Id String - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- argo
Project StringName - ArgoCD Project name which is to be mapped to the Harness project.
- org
Id String - Organization identifier of the GitOps agent's Application Project.
- project
Id String - Project identifier of the GitOps agent's Application Project.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitopsAppProjectMapping resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the GitOps Application Project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the GitOps Application Project.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the GitOps Application Project.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Identifier of the GitOps Application Project.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Identifier of the GitOps Application Project.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the GitOps Application Project.
Look up Existing GitopsAppProjectMapping Resource
Get an existing GitopsAppProjectMapping 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?: GitopsAppProjectMappingState, opts?: CustomResourceOptions): GitopsAppProjectMapping
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
argo_project_name: Optional[str] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None) -> GitopsAppProjectMapping
func GetGitopsAppProjectMapping(ctx *Context, name string, id IDInput, state *GitopsAppProjectMappingState, opts ...ResourceOption) (*GitopsAppProjectMapping, error)
public static GitopsAppProjectMapping Get(string name, Input<string> id, GitopsAppProjectMappingState? state, CustomResourceOptions? opts = null)
public static GitopsAppProjectMapping get(String name, Output<String> id, GitopsAppProjectMappingState 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.
- Account
Id string - Account identifier of the GitOps agent's Application Project.
- Agent
Id string - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- Argo
Project stringName - ArgoCD Project name which is to be mapped to the Harness project.
- Identifier string
- Identifier of the GitOps Application Project.
- Org
Id string - Organization identifier of the GitOps agent's Application Project.
- Project
Id string - Project identifier of the GitOps agent's Application Project.
- Account
Id string - Account identifier of the GitOps agent's Application Project.
- Agent
Id string - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- Argo
Project stringName - ArgoCD Project name which is to be mapped to the Harness project.
- Identifier string
- Identifier of the GitOps Application Project.
- Org
Id string - Organization identifier of the GitOps agent's Application Project.
- Project
Id string - Project identifier of the GitOps agent's Application Project.
- account
Id String - Account identifier of the GitOps agent's Application Project.
- agent
Id String - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- argo
Project StringName - ArgoCD Project name which is to be mapped to the Harness project.
- identifier String
- Identifier of the GitOps Application Project.
- org
Id String - Organization identifier of the GitOps agent's Application Project.
- project
Id String - Project identifier of the GitOps agent's Application Project.
- account
Id string - Account identifier of the GitOps agent's Application Project.
- agent
Id string - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- argo
Project stringName - ArgoCD Project name which is to be mapped to the Harness project.
- identifier string
- Identifier of the GitOps Application Project.
- org
Id string - Organization identifier of the GitOps agent's Application Project.
- project
Id string - Project identifier of the GitOps agent's Application Project.
- account_
id str - Account identifier of the GitOps agent's Application Project.
- agent_
id str - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- argo_
project_ strname - ArgoCD Project name which is to be mapped to the Harness project.
- identifier str
- Identifier of the GitOps Application Project.
- org_
id str - Organization identifier of the GitOps agent's Application Project.
- project_
id str - Project identifier of the GitOps agent's Application Project.
- account
Id String - Account identifier of the GitOps agent's Application Project.
- agent
Id String - Agent identifier for which the ArgoCD and Harness project mapping is to be created.
- argo
Project StringName - ArgoCD Project name which is to be mapped to the Harness project.
- identifier String
- Identifier of the GitOps Application Project.
- org
Id String - Organization identifier of the GitOps agent's Application Project.
- project
Id String - Project identifier of the GitOps agent's Application Project.
Import
Import a GitOps agent app project mapping
$ pulumi import harness:platform/gitopsAppProjectMapping:GitopsAppProjectMapping example <organization_id>/<project_id>/<agent_id>/<appproject_name>
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.