harness.platform.ConnectorCustomSecretManager
Explore with Pulumi AI
Example Usage
Create ConnectorCustomSecretManager Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConnectorCustomSecretManager(name: string, args: ConnectorCustomSecretManagerArgs, opts?: CustomResourceOptions);
@overload
def ConnectorCustomSecretManager(resource_name: str,
args: ConnectorCustomSecretManagerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConnectorCustomSecretManager(resource_name: str,
opts: Optional[ResourceOptions] = None,
template_ref: Optional[str] = None,
version_label: Optional[str] = None,
identifier: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
on_delegate: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
ssh_secret_ref: Optional[str] = None,
delegate_selectors: Optional[Sequence[str]] = None,
target_host: Optional[str] = None,
template_inputs: Optional[Sequence[ConnectorCustomSecretManagerTemplateInputArgs]] = None,
name: Optional[str] = None,
timeout: Optional[int] = None,
type: Optional[str] = None,
description: Optional[str] = None,
working_directory: Optional[str] = None)
func NewConnectorCustomSecretManager(ctx *Context, name string, args ConnectorCustomSecretManagerArgs, opts ...ResourceOption) (*ConnectorCustomSecretManager, error)
public ConnectorCustomSecretManager(string name, ConnectorCustomSecretManagerArgs args, CustomResourceOptions? opts = null)
public ConnectorCustomSecretManager(String name, ConnectorCustomSecretManagerArgs args)
public ConnectorCustomSecretManager(String name, ConnectorCustomSecretManagerArgs args, CustomResourceOptions options)
type: harness:platform:ConnectorCustomSecretManager
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 ConnectorCustomSecretManagerArgs
- 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 ConnectorCustomSecretManagerArgs
- 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 ConnectorCustomSecretManagerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectorCustomSecretManagerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectorCustomSecretManagerArgs
- 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 connectorCustomSecretManagerResource = new Harness.Platform.ConnectorCustomSecretManager("connectorCustomSecretManagerResource", new()
{
TemplateRef = "string",
VersionLabel = "string",
Identifier = "string",
Tags = new[]
{
"string",
},
OnDelegate = false,
OrgId = "string",
ProjectId = "string",
SshSecretRef = "string",
DelegateSelectors = new[]
{
"string",
},
TargetHost = "string",
TemplateInputs = new[]
{
new Harness.Platform.Inputs.ConnectorCustomSecretManagerTemplateInputArgs
{
EnvironmentVariables = new[]
{
new Harness.Platform.Inputs.ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArgs
{
Name = "string",
Type = "string",
Value = "string",
Default = false,
},
},
},
},
Name = "string",
Timeout = 0,
Type = "string",
Description = "string",
WorkingDirectory = "string",
});
example, err := platform.NewConnectorCustomSecretManager(ctx, "connectorCustomSecretManagerResource", &platform.ConnectorCustomSecretManagerArgs{
TemplateRef: pulumi.String("string"),
VersionLabel: pulumi.String("string"),
Identifier: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
OnDelegate: pulumi.Bool(false),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
SshSecretRef: pulumi.String("string"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("string"),
},
TargetHost: pulumi.String("string"),
TemplateInputs: platform.ConnectorCustomSecretManagerTemplateInputArray{
&platform.ConnectorCustomSecretManagerTemplateInputArgs{
EnvironmentVariables: platform.ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArray{
&platform.ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
Default: pulumi.Bool(false),
},
},
},
},
Name: pulumi.String("string"),
Timeout: pulumi.Int(0),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
WorkingDirectory: pulumi.String("string"),
})
var connectorCustomSecretManagerResource = new ConnectorCustomSecretManager("connectorCustomSecretManagerResource", ConnectorCustomSecretManagerArgs.builder()
.templateRef("string")
.versionLabel("string")
.identifier("string")
.tags("string")
.onDelegate(false)
.orgId("string")
.projectId("string")
.sshSecretRef("string")
.delegateSelectors("string")
.targetHost("string")
.templateInputs(ConnectorCustomSecretManagerTemplateInputArgs.builder()
.environmentVariables(ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArgs.builder()
.name("string")
.type("string")
.value("string")
.default_(false)
.build())
.build())
.name("string")
.timeout(0)
.type("string")
.description("string")
.workingDirectory("string")
.build());
connector_custom_secret_manager_resource = harness.platform.ConnectorCustomSecretManager("connectorCustomSecretManagerResource",
template_ref="string",
version_label="string",
identifier="string",
tags=["string"],
on_delegate=False,
org_id="string",
project_id="string",
ssh_secret_ref="string",
delegate_selectors=["string"],
target_host="string",
template_inputs=[{
"environment_variables": [{
"name": "string",
"type": "string",
"value": "string",
"default": False,
}],
}],
name="string",
timeout=0,
type="string",
description="string",
working_directory="string")
const connectorCustomSecretManagerResource = new harness.platform.ConnectorCustomSecretManager("connectorCustomSecretManagerResource", {
templateRef: "string",
versionLabel: "string",
identifier: "string",
tags: ["string"],
onDelegate: false,
orgId: "string",
projectId: "string",
sshSecretRef: "string",
delegateSelectors: ["string"],
targetHost: "string",
templateInputs: [{
environmentVariables: [{
name: "string",
type: "string",
value: "string",
"default": false,
}],
}],
name: "string",
timeout: 0,
type: "string",
description: "string",
workingDirectory: "string",
});
type: harness:platform:ConnectorCustomSecretManager
properties:
delegateSelectors:
- string
description: string
identifier: string
name: string
onDelegate: false
orgId: string
projectId: string
sshSecretRef: string
tags:
- string
targetHost: string
templateInputs:
- environmentVariables:
- default: false
name: string
type: string
value: string
templateRef: string
timeout: 0
type: string
versionLabel: string
workingDirectory: string
ConnectorCustomSecretManager 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 ConnectorCustomSecretManager resource accepts the following input properties:
- Identifier string
- : Unique identifier of the resource.
- Template
Ref string - : Reference to the template used for managing secrets.
- Version
Label string - : Version identifier of the secrets management template.
- Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- : A brief description of what the resource does or is used for.
- Name string
- : Name of the resource.
- On
Delegate bool - : Specifies whether the secrets manager runs on a Harness delegate.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Ssh
Secret stringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - List<string>
- : Tags to associate with the resource.
- Target
Host string - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - Template
Inputs List<ConnectorCustom Secret Manager Template Input> - Timeout int
- : Timeout in seconds for secrets management operations.
- Type string
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - Working
Directory string - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- Identifier string
- : Unique identifier of the resource.
- Template
Ref string - : Reference to the template used for managing secrets.
- Version
Label string - : Version identifier of the secrets management template.
- Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- : A brief description of what the resource does or is used for.
- Name string
- : Name of the resource.
- On
Delegate bool - : Specifies whether the secrets manager runs on a Harness delegate.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Ssh
Secret stringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - []string
- : Tags to associate with the resource.
- Target
Host string - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - Template
Inputs []ConnectorCustom Secret Manager Template Input Args - Timeout int
- : Timeout in seconds for secrets management operations.
- Type string
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - Working
Directory string - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- identifier String
- : Unique identifier of the resource.
- template
Ref String - : Reference to the template used for managing secrets.
- version
Label String - : Version identifier of the secrets management template.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- : A brief description of what the resource does or is used for.
- name String
- : Name of the resource.
- on
Delegate Boolean - : Specifies whether the secrets manager runs on a Harness delegate.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- ssh
Secret StringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - List<String>
- : Tags to associate with the resource.
- target
Host String - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - template
Inputs List<ConnectorCustom Secret Manager Template Input> - timeout Integer
- : Timeout in seconds for secrets management operations.
- type String
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - working
Directory String - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- identifier string
- : Unique identifier of the resource.
- template
Ref string - : Reference to the template used for managing secrets.
- version
Label string - : Version identifier of the secrets management template.
- delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- : A brief description of what the resource does or is used for.
- name string
- : Name of the resource.
- on
Delegate boolean - : Specifies whether the secrets manager runs on a Harness delegate.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- ssh
Secret stringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - string[]
- : Tags to associate with the resource.
- target
Host string - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - template
Inputs ConnectorCustom Secret Manager Template Input[] - timeout number
- : Timeout in seconds for secrets management operations.
- type string
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - working
Directory string - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- identifier str
- : Unique identifier of the resource.
- template_
ref str - : Reference to the template used for managing secrets.
- version_
label str - : Version identifier of the secrets management template.
- delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- : A brief description of what the resource does or is used for.
- name str
- : Name of the resource.
- on_
delegate bool - : Specifies whether the secrets manager runs on a Harness delegate.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- ssh_
secret_ strref - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - Sequence[str]
- : Tags to associate with the resource.
- target_
host str - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - template_
inputs Sequence[ConnectorCustom Secret Manager Template Input Args] - timeout int
- : Timeout in seconds for secrets management operations.
- type str
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - working_
directory str - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- identifier String
- : Unique identifier of the resource.
- template
Ref String - : Reference to the template used for managing secrets.
- version
Label String - : Version identifier of the secrets management template.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- : A brief description of what the resource does or is used for.
- name String
- : Name of the resource.
- on
Delegate Boolean - : Specifies whether the secrets manager runs on a Harness delegate.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- ssh
Secret StringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - List<String>
- : Tags to associate with the resource.
- target
Host String - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - template
Inputs List<Property Map> - timeout Number
- : Timeout in seconds for secrets management operations.
- type String
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - working
Directory String - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectorCustomSecretManager 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 ConnectorCustomSecretManager Resource
Get an existing ConnectorCustomSecretManager 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?: ConnectorCustomSecretManagerState, opts?: CustomResourceOptions): ConnectorCustomSecretManager
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delegate_selectors: Optional[Sequence[str]] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
on_delegate: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
ssh_secret_ref: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_host: Optional[str] = None,
template_inputs: Optional[Sequence[ConnectorCustomSecretManagerTemplateInputArgs]] = None,
template_ref: Optional[str] = None,
timeout: Optional[int] = None,
type: Optional[str] = None,
version_label: Optional[str] = None,
working_directory: Optional[str] = None) -> ConnectorCustomSecretManager
func GetConnectorCustomSecretManager(ctx *Context, name string, id IDInput, state *ConnectorCustomSecretManagerState, opts ...ResourceOption) (*ConnectorCustomSecretManager, error)
public static ConnectorCustomSecretManager Get(string name, Input<string> id, ConnectorCustomSecretManagerState? state, CustomResourceOptions? opts = null)
public static ConnectorCustomSecretManager get(String name, Output<String> id, ConnectorCustomSecretManagerState 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.
- Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- : A brief description of what the resource does or is used for.
- Identifier string
- : Unique identifier of the resource.
- Name string
- : Name of the resource.
- On
Delegate bool - : Specifies whether the secrets manager runs on a Harness delegate.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Ssh
Secret stringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - List<string>
- : Tags to associate with the resource.
- Target
Host string - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - Template
Inputs List<ConnectorCustom Secret Manager Template Input> - Template
Ref string - : Reference to the template used for managing secrets.
- Timeout int
- : Timeout in seconds for secrets management operations.
- Type string
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - Version
Label string - : Version identifier of the secrets management template.
- Working
Directory string - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- : A brief description of what the resource does or is used for.
- Identifier string
- : Unique identifier of the resource.
- Name string
- : Name of the resource.
- On
Delegate bool - : Specifies whether the secrets manager runs on a Harness delegate.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Ssh
Secret stringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - []string
- : Tags to associate with the resource.
- Target
Host string - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - Template
Inputs []ConnectorCustom Secret Manager Template Input Args - Template
Ref string - : Reference to the template used for managing secrets.
- Timeout int
- : Timeout in seconds for secrets management operations.
- Type string
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - Version
Label string - : Version identifier of the secrets management template.
- Working
Directory string - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- : A brief description of what the resource does or is used for.
- identifier String
- : Unique identifier of the resource.
- name String
- : Name of the resource.
- on
Delegate Boolean - : Specifies whether the secrets manager runs on a Harness delegate.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- ssh
Secret StringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - List<String>
- : Tags to associate with the resource.
- target
Host String - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - template
Inputs List<ConnectorCustom Secret Manager Template Input> - template
Ref String - : Reference to the template used for managing secrets.
- timeout Integer
- : Timeout in seconds for secrets management operations.
- type String
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - version
Label String - : Version identifier of the secrets management template.
- working
Directory String - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- : A brief description of what the resource does or is used for.
- identifier string
- : Unique identifier of the resource.
- name string
- : Name of the resource.
- on
Delegate boolean - : Specifies whether the secrets manager runs on a Harness delegate.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- ssh
Secret stringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - string[]
- : Tags to associate with the resource.
- target
Host string - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - template
Inputs ConnectorCustom Secret Manager Template Input[] - template
Ref string - : Reference to the template used for managing secrets.
- timeout number
- : Timeout in seconds for secrets management operations.
- type string
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - version
Label string - : Version identifier of the secrets management template.
- working
Directory string - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- : A brief description of what the resource does or is used for.
- identifier str
- : Unique identifier of the resource.
- name str
- : Name of the resource.
- on_
delegate bool - : Specifies whether the secrets manager runs on a Harness delegate.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- ssh_
secret_ strref - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - Sequence[str]
- : Tags to associate with the resource.
- target_
host str - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - template_
inputs Sequence[ConnectorCustom Secret Manager Template Input Args] - template_
ref str - : Reference to the template used for managing secrets.
- timeout int
- : Timeout in seconds for secrets management operations.
- type str
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - version_
label str - : Version identifier of the secrets management template.
- working_
directory str - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- : A brief description of what the resource does or is used for.
- identifier String
- : Unique identifier of the resource.
- name String
- : Name of the resource.
- on
Delegate Boolean - : Specifies whether the secrets manager runs on a Harness delegate.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- ssh
Secret StringRef - : Reference to the Harness secret containing SSH credentials for the target host. Required if
on_delegate
is set to false. - List<String>
- : Tags to associate with the resource.
- target
Host String - : Host address where secrets will be managed. Required if
on_delegate
is set to false. - template
Inputs List<Property Map> - template
Ref String - : Reference to the template used for managing secrets.
- timeout Number
- : Timeout in seconds for secrets management operations.
- type String
- : Type of the custom secrets manager, typically set to
CustomSecretManager
. - version
Label String - : Version identifier of the secrets management template.
- working
Directory String - : Directory path on the target host where secrets management tasks are performed. Required if
on_delegate
is set to false.
Supporting Types
ConnectorCustomSecretManagerTemplateInput, ConnectorCustomSecretManagerTemplateInputArgs
ConnectorCustomSecretManagerTemplateInputEnvironmentVariable, ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArgs
Import
Import account level custom secret manager connector
$ pulumi import harness:platform/connectorCustomSecretManager:ConnectorCustomSecretManager example <connector_id>
Import org level custom secret manager connector
$ pulumi import harness:platform/connectorCustomSecretManager:ConnectorCustomSecretManager example <ord_id>/<connector_id>
Import project level custom secret manager connector
$ pulumi import harness:platform/connectorCustomSecretManager:ConnectorCustomSecretManager example <org_id>/<project_id>/<connector_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.