1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. GitOpsRepoCert
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.GitOpsRepoCert

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating a Harness Gitops Repositories Certificates.

    Example Usage

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.GitOpsRepoCert;
    import com.pulumi.harness.platform.GitOpsRepoCertArgs;
    import com.pulumi.harness.platform.inputs.GitOpsRepoCertRequestArgs;
    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 GitOpsRepoCert("example", GitOpsRepoCertArgs.builder()        
                .accountId("account_id")
                .agentId("agent_id")
                .requests(GitOpsRepoCertRequestArgs.builder()
                    .certificates(GitOpsRepoCertRequestCertificateArgs.builder()
                        .items(GitOpsRepoCertRequestCertificateItemArgs.builder()
                            .certData("yourcertdata")
                            .certType("https")
                            .serverName("serverName")
                            .build())
                        .metadata()
                        .build())
                    .upsert(true)
                    .build())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      example:
        type: harness:platform:GitOpsRepoCert
        properties:
          accountId: account_id
          agentId: agent_id
          requests:
            - certificates:
                - items:
                    - certData: yourcertdata
                      certType: https
                      serverName: serverName
                  metadata:
                    - {}
              upsert: true
    

    Create GitOpsRepoCert Resource

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

    Constructor syntax

    new GitOpsRepoCert(name: string, args: GitOpsRepoCertArgs, opts?: CustomResourceOptions);
    @overload
    def GitOpsRepoCert(resource_name: str,
                       args: GitOpsRepoCertArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def GitOpsRepoCert(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       account_id: Optional[str] = None,
                       agent_id: Optional[str] = None,
                       requests: Optional[Sequence[GitOpsRepoCertRequestArgs]] = None,
                       org_id: Optional[str] = None,
                       project_id: Optional[str] = None)
    func NewGitOpsRepoCert(ctx *Context, name string, args GitOpsRepoCertArgs, opts ...ResourceOption) (*GitOpsRepoCert, error)
    public GitOpsRepoCert(string name, GitOpsRepoCertArgs args, CustomResourceOptions? opts = null)
    public GitOpsRepoCert(String name, GitOpsRepoCertArgs args)
    public GitOpsRepoCert(String name, GitOpsRepoCertArgs args, CustomResourceOptions options)
    
    type: harness:platform:GitOpsRepoCert
    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 GitOpsRepoCertArgs
    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 GitOpsRepoCertArgs
    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 GitOpsRepoCertArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GitOpsRepoCertArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GitOpsRepoCertArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var gitOpsRepoCertResource = new Harness.Platform.GitOpsRepoCert("gitOpsRepoCertResource", new()
    {
        AccountId = "string",
        AgentId = "string",
        Requests = new[]
        {
            new Harness.Platform.Inputs.GitOpsRepoCertRequestArgs
            {
                Certificates = new[]
                {
                    new Harness.Platform.Inputs.GitOpsRepoCertRequestCertificateArgs
                    {
                        Items = new[]
                        {
                            new Harness.Platform.Inputs.GitOpsRepoCertRequestCertificateItemArgs
                            {
                                CertData = "string",
                                CertInfo = "string",
                                CertSubType = "string",
                                CertType = "string",
                                ServerName = "string",
                            },
                        },
                        Metadatas = new[]
                        {
                            new Harness.Platform.Inputs.GitOpsRepoCertRequestCertificateMetadataArgs
                            {
                                Continue = "string",
                                RemainingItemCount = "string",
                                ResourceVersion = "string",
                                SelfLink = "string",
                            },
                        },
                    },
                },
                Upsert = false,
            },
        },
        OrgId = "string",
        ProjectId = "string",
    });
    
    example, err := platform.NewGitOpsRepoCert(ctx, "gitOpsRepoCertResource", &platform.GitOpsRepoCertArgs{
    	AccountId: pulumi.String("string"),
    	AgentId:   pulumi.String("string"),
    	Requests: platform.GitOpsRepoCertRequestArray{
    		&platform.GitOpsRepoCertRequestArgs{
    			Certificates: platform.GitOpsRepoCertRequestCertificateArray{
    				&platform.GitOpsRepoCertRequestCertificateArgs{
    					Items: platform.GitOpsRepoCertRequestCertificateItemArray{
    						&platform.GitOpsRepoCertRequestCertificateItemArgs{
    							CertData:    pulumi.String("string"),
    							CertInfo:    pulumi.String("string"),
    							CertSubType: pulumi.String("string"),
    							CertType:    pulumi.String("string"),
    							ServerName:  pulumi.String("string"),
    						},
    					},
    					Metadatas: platform.GitOpsRepoCertRequestCertificateMetadataArray{
    						&platform.GitOpsRepoCertRequestCertificateMetadataArgs{
    							Continue:           pulumi.String("string"),
    							RemainingItemCount: pulumi.String("string"),
    							ResourceVersion:    pulumi.String("string"),
    							SelfLink:           pulumi.String("string"),
    						},
    					},
    				},
    			},
    			Upsert: pulumi.Bool(false),
    		},
    	},
    	OrgId:     pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    })
    
    var gitOpsRepoCertResource = new GitOpsRepoCert("gitOpsRepoCertResource", GitOpsRepoCertArgs.builder()        
        .accountId("string")
        .agentId("string")
        .requests(GitOpsRepoCertRequestArgs.builder()
            .certificates(GitOpsRepoCertRequestCertificateArgs.builder()
                .items(GitOpsRepoCertRequestCertificateItemArgs.builder()
                    .certData("string")
                    .certInfo("string")
                    .certSubType("string")
                    .certType("string")
                    .serverName("string")
                    .build())
                .metadatas(GitOpsRepoCertRequestCertificateMetadataArgs.builder()
                    .continue_("string")
                    .remainingItemCount("string")
                    .resourceVersion("string")
                    .selfLink("string")
                    .build())
                .build())
            .upsert(false)
            .build())
        .orgId("string")
        .projectId("string")
        .build());
    
    git_ops_repo_cert_resource = harness.platform.GitOpsRepoCert("gitOpsRepoCertResource",
        account_id="string",
        agent_id="string",
        requests=[harness.platform.GitOpsRepoCertRequestArgs(
            certificates=[harness.platform.GitOpsRepoCertRequestCertificateArgs(
                items=[harness.platform.GitOpsRepoCertRequestCertificateItemArgs(
                    cert_data="string",
                    cert_info="string",
                    cert_sub_type="string",
                    cert_type="string",
                    server_name="string",
                )],
                metadatas=[harness.platform.GitOpsRepoCertRequestCertificateMetadataArgs(
                    continue_="string",
                    remaining_item_count="string",
                    resource_version="string",
                    self_link="string",
                )],
            )],
            upsert=False,
        )],
        org_id="string",
        project_id="string")
    
    const gitOpsRepoCertResource = new harness.platform.GitOpsRepoCert("gitOpsRepoCertResource", {
        accountId: "string",
        agentId: "string",
        requests: [{
            certificates: [{
                items: [{
                    certData: "string",
                    certInfo: "string",
                    certSubType: "string",
                    certType: "string",
                    serverName: "string",
                }],
                metadatas: [{
                    "continue": "string",
                    remainingItemCount: "string",
                    resourceVersion: "string",
                    selfLink: "string",
                }],
            }],
            upsert: false,
        }],
        orgId: "string",
        projectId: "string",
    });
    
    type: harness:platform:GitOpsRepoCert
    properties:
        accountId: string
        agentId: string
        orgId: string
        projectId: string
        requests:
            - certificates:
                - items:
                    - certData: string
                      certInfo: string
                      certSubType: string
                      certType: string
                      serverName: string
                  metadatas:
                    - continue: string
                      remainingItemCount: string
                      resourceVersion: string
                      selfLink: string
              upsert: false
    

    GitOpsRepoCert Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The GitOpsRepoCert resource accepts the following input properties:

    AccountId string
    account identifier of the Repository Certificates.
    AgentId string
    agent identifier of the Repository Certificates.
    Requests List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GitOpsRepoCertRequest>
    Repository Certificates create/Update request.
    OrgId string
    organization identifier of the Repository Certificates.
    ProjectId string
    project identifier of the Repository Certificates.
    AccountId string
    account identifier of the Repository Certificates.
    AgentId string
    agent identifier of the Repository Certificates.
    Requests []GitOpsRepoCertRequestArgs
    Repository Certificates create/Update request.
    OrgId string
    organization identifier of the Repository Certificates.
    ProjectId string
    project identifier of the Repository Certificates.
    accountId String
    account identifier of the Repository Certificates.
    agentId String
    agent identifier of the Repository Certificates.
    requests List<GitOpsRepoCertRequest>
    Repository Certificates create/Update request.
    orgId String
    organization identifier of the Repository Certificates.
    projectId String
    project identifier of the Repository Certificates.
    accountId string
    account identifier of the Repository Certificates.
    agentId string
    agent identifier of the Repository Certificates.
    requests GitOpsRepoCertRequest[]
    Repository Certificates create/Update request.
    orgId string
    organization identifier of the Repository Certificates.
    projectId string
    project identifier of the Repository Certificates.
    account_id str
    account identifier of the Repository Certificates.
    agent_id str
    agent identifier of the Repository Certificates.
    requests Sequence[GitOpsRepoCertRequestArgs]
    Repository Certificates create/Update request.
    org_id str
    organization identifier of the Repository Certificates.
    project_id str
    project identifier of the Repository Certificates.
    accountId String
    account identifier of the Repository Certificates.
    agentId String
    agent identifier of the Repository Certificates.
    requests List<Property Map>
    Repository Certificates create/Update request.
    orgId String
    organization identifier of the Repository Certificates.
    projectId String
    project identifier of the Repository Certificates.

    Outputs

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

    Get an existing GitOpsRepoCert 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?: GitOpsRepoCertState, opts?: CustomResourceOptions): GitOpsRepoCert
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            agent_id: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            requests: Optional[Sequence[GitOpsRepoCertRequestArgs]] = None) -> GitOpsRepoCert
    func GetGitOpsRepoCert(ctx *Context, name string, id IDInput, state *GitOpsRepoCertState, opts ...ResourceOption) (*GitOpsRepoCert, error)
    public static GitOpsRepoCert Get(string name, Input<string> id, GitOpsRepoCertState? state, CustomResourceOptions? opts = null)
    public static GitOpsRepoCert get(String name, Output<String> id, GitOpsRepoCertState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    account identifier of the Repository Certificates.
    AgentId string
    agent identifier of the Repository Certificates.
    OrgId string
    organization identifier of the Repository Certificates.
    ProjectId string
    project identifier of the Repository Certificates.
    Requests List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GitOpsRepoCertRequest>
    Repository Certificates create/Update request.
    AccountId string
    account identifier of the Repository Certificates.
    AgentId string
    agent identifier of the Repository Certificates.
    OrgId string
    organization identifier of the Repository Certificates.
    ProjectId string
    project identifier of the Repository Certificates.
    Requests []GitOpsRepoCertRequestArgs
    Repository Certificates create/Update request.
    accountId String
    account identifier of the Repository Certificates.
    agentId String
    agent identifier of the Repository Certificates.
    orgId String
    organization identifier of the Repository Certificates.
    projectId String
    project identifier of the Repository Certificates.
    requests List<GitOpsRepoCertRequest>
    Repository Certificates create/Update request.
    accountId string
    account identifier of the Repository Certificates.
    agentId string
    agent identifier of the Repository Certificates.
    orgId string
    organization identifier of the Repository Certificates.
    projectId string
    project identifier of the Repository Certificates.
    requests GitOpsRepoCertRequest[]
    Repository Certificates create/Update request.
    account_id str
    account identifier of the Repository Certificates.
    agent_id str
    agent identifier of the Repository Certificates.
    org_id str
    organization identifier of the Repository Certificates.
    project_id str
    project identifier of the Repository Certificates.
    requests Sequence[GitOpsRepoCertRequestArgs]
    Repository Certificates create/Update request.
    accountId String
    account identifier of the Repository Certificates.
    agentId String
    agent identifier of the Repository Certificates.
    orgId String
    organization identifier of the Repository Certificates.
    projectId String
    project identifier of the Repository Certificates.
    requests List<Property Map>
    Repository Certificates create/Update request.

    Supporting Types

    GitOpsRepoCertRequest, GitOpsRepoCertRequestArgs

    Certificates List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GitOpsRepoCertRequestCertificate>
    certificates details.
    Upsert bool
    if the Repository Certificates should be upserted.
    Certificates []GitOpsRepoCertRequestCertificate
    certificates details.
    Upsert bool
    if the Repository Certificates should be upserted.
    certificates List<GitOpsRepoCertRequestCertificate>
    certificates details.
    upsert Boolean
    if the Repository Certificates should be upserted.
    certificates GitOpsRepoCertRequestCertificate[]
    certificates details.
    upsert boolean
    if the Repository Certificates should be upserted.
    certificates Sequence[GitOpsRepoCertRequestCertificate]
    certificates details.
    upsert bool
    if the Repository Certificates should be upserted.
    certificates List<Property Map>
    certificates details.
    upsert Boolean
    if the Repository Certificates should be upserted.

    GitOpsRepoCertRequestCertificate, GitOpsRepoCertRequestCertificateArgs

    GitOpsRepoCertRequestCertificateItem, GitOpsRepoCertRequestCertificateItemArgs

    CertData string
    CertInfo string
    CertSubType string
    CertType string
    ServerName string
    CertData string
    CertInfo string
    CertSubType string
    CertType string
    ServerName string
    certData String
    certInfo String
    certSubType String
    certType String
    serverName String
    certData string
    certInfo string
    certSubType string
    certType string
    serverName string
    certData String
    certInfo String
    certSubType String
    certType String
    serverName String

    GitOpsRepoCertRequestCertificateMetadata, GitOpsRepoCertRequestCertificateMetadataArgs

    Import

    Import a Account level Gitops Repository Certificate

     $ pulumi import harness:platform/gitOpsRepoCert:GitOpsRepoCert example <repocert_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs