1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. ConnectorPdc
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.platform.ConnectorPdc

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

    Resource for creating a Physical data center connector.

    Example to create Pdc Connector at different levels (Org, Project, Account)

    Create ConnectorPdc Resource

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

    Constructor syntax

    new ConnectorPdc(name: string, args: ConnectorPdcArgs, opts?: CustomResourceOptions);
    @overload
    def ConnectorPdc(resource_name: str,
                     args: ConnectorPdcArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConnectorPdc(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     hosts: Optional[Sequence[ConnectorPdcHostArgs]] = None,
                     identifier: Optional[str] = None,
                     delegate_selectors: Optional[Sequence[str]] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     org_id: Optional[str] = None,
                     project_id: Optional[str] = None,
                     tags: Optional[Sequence[str]] = None)
    func NewConnectorPdc(ctx *Context, name string, args ConnectorPdcArgs, opts ...ResourceOption) (*ConnectorPdc, error)
    public ConnectorPdc(string name, ConnectorPdcArgs args, CustomResourceOptions? opts = null)
    public ConnectorPdc(String name, ConnectorPdcArgs args)
    public ConnectorPdc(String name, ConnectorPdcArgs args, CustomResourceOptions options)
    
    type: harness:platform:ConnectorPdc
    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 ConnectorPdcArgs
    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 ConnectorPdcArgs
    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 ConnectorPdcArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectorPdcArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectorPdcArgs
    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 connectorPdcResource = new Harness.Platform.ConnectorPdc("connectorPdcResource", new()
    {
        Hosts = new[]
        {
            new Harness.Platform.Inputs.ConnectorPdcHostArgs
            {
                Hostname = "string",
                Attributes = 
                {
                    { "string", "string" },
                },
            },
        },
        Identifier = "string",
        DelegateSelectors = new[]
        {
            "string",
        },
        Description = "string",
        Name = "string",
        OrgId = "string",
        ProjectId = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := platform.NewConnectorPdc(ctx, "connectorPdcResource", &platform.ConnectorPdcArgs{
    	Hosts: platform.ConnectorPdcHostArray{
    		&platform.ConnectorPdcHostArgs{
    			Hostname: pulumi.String("string"),
    			Attributes: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    	Identifier: pulumi.String("string"),
    	DelegateSelectors: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	OrgId:       pulumi.String("string"),
    	ProjectId:   pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var connectorPdcResource = new ConnectorPdc("connectorPdcResource", ConnectorPdcArgs.builder()
        .hosts(ConnectorPdcHostArgs.builder()
            .hostname("string")
            .attributes(Map.of("string", "string"))
            .build())
        .identifier("string")
        .delegateSelectors("string")
        .description("string")
        .name("string")
        .orgId("string")
        .projectId("string")
        .tags("string")
        .build());
    
    connector_pdc_resource = harness.platform.ConnectorPdc("connectorPdcResource",
        hosts=[harness.platform.ConnectorPdcHostArgs(
            hostname="string",
            attributes={
                "string": "string",
            },
        )],
        identifier="string",
        delegate_selectors=["string"],
        description="string",
        name="string",
        org_id="string",
        project_id="string",
        tags=["string"])
    
    const connectorPdcResource = new harness.platform.ConnectorPdc("connectorPdcResource", {
        hosts: [{
            hostname: "string",
            attributes: {
                string: "string",
            },
        }],
        identifier: "string",
        delegateSelectors: ["string"],
        description: "string",
        name: "string",
        orgId: "string",
        projectId: "string",
        tags: ["string"],
    });
    
    type: harness:platform:ConnectorPdc
    properties:
        delegateSelectors:
            - string
        description: string
        hosts:
            - attributes:
                string: string
              hostname: string
        identifier: string
        name: string
        orgId: string
        projectId: string
        tags:
            - string
    

    ConnectorPdc 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 ConnectorPdc resource accepts the following input properties:

    Hosts List<ConnectorPdcHost>
    Hosts to be provided.
    Identifier string
    Unique identifier of the resource.
    DelegateSelectors List<string>
    Tags to filter delegates for connection.
    Description string
    Description of the resource.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags List<string>
    Tags to associate with the resource.
    Hosts []ConnectorPdcHostArgs
    Hosts to be provided.
    Identifier string
    Unique identifier of the resource.
    DelegateSelectors []string
    Tags to filter delegates for connection.
    Description string
    Description of the resource.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags []string
    Tags to associate with the resource.
    hosts List<ConnectorPdcHost>
    Hosts to be provided.
    identifier String
    Unique identifier of the resource.
    delegateSelectors List<String>
    Tags to filter delegates for connection.
    description String
    Description of the resource.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.
    hosts ConnectorPdcHost[]
    Hosts to be provided.
    identifier string
    Unique identifier of the resource.
    delegateSelectors string[]
    Tags to filter delegates for connection.
    description string
    Description of the resource.
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    tags string[]
    Tags to associate with the resource.
    hosts Sequence[ConnectorPdcHostArgs]
    Hosts to be provided.
    identifier str
    Unique identifier of the resource.
    delegate_selectors Sequence[str]
    Tags to filter delegates for connection.
    description str
    Description of the resource.
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    tags Sequence[str]
    Tags to associate with the resource.
    hosts List<Property Map>
    Hosts to be provided.
    identifier String
    Unique identifier of the resource.
    delegateSelectors List<String>
    Tags to filter delegates for connection.
    description String
    Description of the resource.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.

    Outputs

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

    Get an existing ConnectorPdc 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?: ConnectorPdcState, opts?: CustomResourceOptions): ConnectorPdc
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            delegate_selectors: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            hosts: Optional[Sequence[ConnectorPdcHostArgs]] = None,
            identifier: Optional[str] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> ConnectorPdc
    func GetConnectorPdc(ctx *Context, name string, id IDInput, state *ConnectorPdcState, opts ...ResourceOption) (*ConnectorPdc, error)
    public static ConnectorPdc Get(string name, Input<string> id, ConnectorPdcState? state, CustomResourceOptions? opts = null)
    public static ConnectorPdc get(String name, Output<String> id, ConnectorPdcState 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:
    DelegateSelectors List<string>
    Tags to filter delegates for connection.
    Description string
    Description of the resource.
    Hosts List<ConnectorPdcHost>
    Hosts to be provided.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags List<string>
    Tags to associate with the resource.
    DelegateSelectors []string
    Tags to filter delegates for connection.
    Description string
    Description of the resource.
    Hosts []ConnectorPdcHostArgs
    Hosts to be provided.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags []string
    Tags to associate with the resource.
    delegateSelectors List<String>
    Tags to filter delegates for connection.
    description String
    Description of the resource.
    hosts List<ConnectorPdcHost>
    Hosts to be provided.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.
    delegateSelectors string[]
    Tags to filter delegates for connection.
    description string
    Description of the resource.
    hosts ConnectorPdcHost[]
    Hosts to be provided.
    identifier string
    Unique identifier of the resource.
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    tags string[]
    Tags to associate with the resource.
    delegate_selectors Sequence[str]
    Tags to filter delegates for connection.
    description str
    Description of the resource.
    hosts Sequence[ConnectorPdcHostArgs]
    Hosts to be provided.
    identifier str
    Unique identifier of the resource.
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    tags Sequence[str]
    Tags to associate with the resource.
    delegateSelectors List<String>
    Tags to filter delegates for connection.
    description String
    Description of the resource.
    hosts List<Property Map>
    Hosts to be provided.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.

    Supporting Types

    ConnectorPdcHost, ConnectorPdcHostArgs

    Hostname string
    Hostname e.g. 87.23.66.11:80
    Attributes Dictionary<string, string>
    Host attributes with values. e.g. type, region, name, ip, etc.
    Hostname string
    Hostname e.g. 87.23.66.11:80
    Attributes map[string]string
    Host attributes with values. e.g. type, region, name, ip, etc.
    hostname String
    Hostname e.g. 87.23.66.11:80
    attributes Map<String,String>
    Host attributes with values. e.g. type, region, name, ip, etc.
    hostname string
    Hostname e.g. 87.23.66.11:80
    attributes {[key: string]: string}
    Host attributes with values. e.g. type, region, name, ip, etc.
    hostname str
    Hostname e.g. 87.23.66.11:80
    attributes Mapping[str, str]
    Host attributes with values. e.g. type, region, name, ip, etc.
    hostname String
    Hostname e.g. 87.23.66.11:80
    attributes Map<String>
    Host attributes with values. e.g. type, region, name, ip, etc.

    Import

    Import account level pdc connector

    $ pulumi import harness:platform/connectorPdc:ConnectorPdc example <connector_id>
    

    Import org level pdc connector

    $ pulumi import harness:platform/connectorPdc:ConnectorPdc example <ord_id>/<connector_id>
    

    Import project level pdc connector

    $ pulumi import harness:platform/connectorPdc:ConnectorPdc 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.
    harness logo
    Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi