harness.platform.GitOpsRepoCert
Explore with Pulumi AI
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.
Constructor 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:
- Account
Id string - account identifier of the Repository Certificates.
- Agent
Id string - agent identifier of the Repository Certificates.
- Requests
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Repo Cert Request> - Repository Certificates create/Update request.
- Org
Id string - organization identifier of the Repository Certificates.
- Project
Id string - project identifier of the Repository Certificates.
- Account
Id string - account identifier of the Repository Certificates.
- Agent
Id string - agent identifier of the Repository Certificates.
- Requests
[]Git
Ops Repo Cert Request Args - Repository Certificates create/Update request.
- Org
Id string - organization identifier of the Repository Certificates.
- Project
Id string - project identifier of the Repository Certificates.
- account
Id String - account identifier of the Repository Certificates.
- agent
Id String - agent identifier of the Repository Certificates.
- requests
List<Git
Ops Repo Cert Request> - Repository Certificates create/Update request.
- org
Id String - organization identifier of the Repository Certificates.
- project
Id String - project identifier of the Repository Certificates.
- account
Id string - account identifier of the Repository Certificates.
- agent
Id string - agent identifier of the Repository Certificates.
- requests
Git
Ops Repo Cert Request[] - Repository Certificates create/Update request.
- org
Id string - organization identifier of the Repository Certificates.
- project
Id 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[Git
Ops Repo Cert Request Args] - Repository Certificates create/Update request.
- org_
id str - organization identifier of the Repository Certificates.
- project_
id str - project identifier of the Repository Certificates.
- account
Id String - account identifier of the Repository Certificates.
- agent
Id String - agent identifier of the Repository Certificates.
- requests List<Property Map>
- Repository Certificates create/Update request.
- org
Id String - organization identifier of the Repository Certificates.
- project
Id 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.
- Account
Id string - account identifier of the Repository Certificates.
- Agent
Id string - agent identifier of the Repository Certificates.
- Org
Id string - organization identifier of the Repository Certificates.
- Project
Id string - project identifier of the Repository Certificates.
- Requests
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Repo Cert Request> - Repository Certificates create/Update request.
- Account
Id string - account identifier of the Repository Certificates.
- Agent
Id string - agent identifier of the Repository Certificates.
- Org
Id string - organization identifier of the Repository Certificates.
- Project
Id string - project identifier of the Repository Certificates.
- Requests
[]Git
Ops Repo Cert Request Args - Repository Certificates create/Update request.
- account
Id String - account identifier of the Repository Certificates.
- agent
Id String - agent identifier of the Repository Certificates.
- org
Id String - organization identifier of the Repository Certificates.
- project
Id String - project identifier of the Repository Certificates.
- requests
List<Git
Ops Repo Cert Request> - Repository Certificates create/Update request.
- account
Id string - account identifier of the Repository Certificates.
- agent
Id string - agent identifier of the Repository Certificates.
- org
Id string - organization identifier of the Repository Certificates.
- project
Id string - project identifier of the Repository Certificates.
- requests
Git
Ops Repo Cert Request[] - 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[Git
Ops Repo Cert Request Args] - Repository Certificates create/Update request.
- account
Id String - account identifier of the Repository Certificates.
- agent
Id String - agent identifier of the Repository Certificates.
- org
Id String - organization identifier of the Repository Certificates.
- project
Id String - project identifier of the Repository Certificates.
- requests List<Property Map>
- Repository Certificates create/Update request.
Supporting Types
GitOpsRepoCertRequest, GitOpsRepoCertRequestArgs
- Certificates
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Repo Cert Request Certificate> - certificates details.
- Upsert bool
- if the Repository Certificates should be upserted.
- Certificates
[]Git
Ops Repo Cert Request Certificate - certificates details.
- Upsert bool
- if the Repository Certificates should be upserted.
- certificates
List<Git
Ops Repo Cert Request Certificate> - certificates details.
- upsert Boolean
- if the Repository Certificates should be upserted.
- certificates
Git
Ops Repo Cert Request Certificate[] - certificates details.
- upsert boolean
- if the Repository Certificates should be upserted.
- certificates
Sequence[Git
Ops Repo Cert Request Certificate] - 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
- Cert
Data string - Cert
Info string - Cert
Sub stringType - Cert
Type string - Server
Name string
- Cert
Data string - Cert
Info string - Cert
Sub stringType - Cert
Type string - Server
Name string
- cert
Data String - cert
Info String - cert
Sub StringType - cert
Type String - server
Name String
- cert
Data string - cert
Info string - cert
Sub stringType - cert
Type string - server
Name string
- cert_
data str - cert_
info str - cert_
sub_ strtype - cert_
type str - server_
name str
- cert
Data String - cert
Info String - cert
Sub StringType - cert
Type String - server
Name String
GitOpsRepoCertRequestCertificateMetadata, GitOpsRepoCertRequestCertificateMetadataArgs
- Continue string
- Remaining
Item stringCount - Resource
Version string - Self
Link string
- Continue string
- Remaining
Item stringCount - Resource
Version string - Self
Link string
- continue_ String
- remaining
Item StringCount - resource
Version String - self
Link String
- continue string
- remaining
Item stringCount - resource
Version string - self
Link string
- continue_ str
- remaining_
item_ strcount - resource_
version str - self_
link str
- continue String
- remaining
Item StringCount - resource
Version String - self
Link String
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.