Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.expressconnect.getPhysicalConnections
Explore with Pulumi AI
This data source provides the Express Connect Physical Connections of the current Alibaba Cloud user.
NOTE: Available in v1.132.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.expressconnect.getPhysicalConnections({
ids: ["pc-2345678"],
});
export const expressConnectPhysicalConnectionId1 = ids.then(ids => ids.connections?.[0]?.id);
const nameRegex = alicloud.expressconnect.getPhysicalConnections({
nameRegex: "^my-PhysicalConnection",
});
export const expressConnectPhysicalConnectionId2 = nameRegex.then(nameRegex => nameRegex.connections?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.expressconnect.get_physical_connections(ids=["pc-2345678"])
pulumi.export("expressConnectPhysicalConnectionId1", ids.connections[0].id)
name_regex = alicloud.expressconnect.get_physical_connections(name_regex="^my-PhysicalConnection")
pulumi.export("expressConnectPhysicalConnectionId2", name_regex.connections[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := expressconnect.GetPhysicalConnections(ctx, &expressconnect.GetPhysicalConnectionsArgs{
Ids: []string{
"pc-2345678",
},
}, nil)
if err != nil {
return err
}
ctx.Export("expressConnectPhysicalConnectionId1", ids.Connections[0].Id)
nameRegex, err := expressconnect.GetPhysicalConnections(ctx, &expressconnect.GetPhysicalConnectionsArgs{
NameRegex: pulumi.StringRef("^my-PhysicalConnection"),
}, nil)
if err != nil {
return err
}
ctx.Export("expressConnectPhysicalConnectionId2", nameRegex.Connections[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new()
{
Ids = new[]
{
"pc-2345678",
},
});
var nameRegex = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new()
{
NameRegex = "^my-PhysicalConnection",
});
return new Dictionary<string, object?>
{
["expressConnectPhysicalConnectionId1"] = ids.Apply(getPhysicalConnectionsResult => getPhysicalConnectionsResult.Connections[0]?.Id),
["expressConnectPhysicalConnectionId2"] = nameRegex.Apply(getPhysicalConnectionsResult => getPhysicalConnectionsResult.Connections[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
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) {
final var ids = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
.ids("pc-2345678")
.build());
ctx.export("expressConnectPhysicalConnectionId1", ids.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()));
final var nameRegex = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
.nameRegex("^my-PhysicalConnection")
.build());
ctx.export("expressConnectPhysicalConnectionId2", nameRegex.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:expressconnect:getPhysicalConnections
Arguments:
ids:
- pc-2345678
nameRegex:
fn::invoke:
Function: alicloud:expressconnect:getPhysicalConnections
Arguments:
nameRegex: ^my-PhysicalConnection
outputs:
expressConnectPhysicalConnectionId1: ${ids.connections[0].id}
expressConnectPhysicalConnectionId2: ${nameRegex.connections[0].id}
Using getPhysicalConnections
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPhysicalConnections(args: GetPhysicalConnectionsArgs, opts?: InvokeOptions): Promise<GetPhysicalConnectionsResult>
function getPhysicalConnectionsOutput(args: GetPhysicalConnectionsOutputArgs, opts?: InvokeOptions): Output<GetPhysicalConnectionsResult>
def get_physical_connections(ids: Optional[Sequence[str]] = None,
include_reservation_data: Optional[bool] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPhysicalConnectionsResult
def get_physical_connections_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
include_reservation_data: Optional[pulumi.Input[bool]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPhysicalConnectionsResult]
func GetPhysicalConnections(ctx *Context, args *GetPhysicalConnectionsArgs, opts ...InvokeOption) (*GetPhysicalConnectionsResult, error)
func GetPhysicalConnectionsOutput(ctx *Context, args *GetPhysicalConnectionsOutputArgs, opts ...InvokeOption) GetPhysicalConnectionsResultOutput
> Note: This function is named GetPhysicalConnections
in the Go SDK.
public static class GetPhysicalConnections
{
public static Task<GetPhysicalConnectionsResult> InvokeAsync(GetPhysicalConnectionsArgs args, InvokeOptions? opts = null)
public static Output<GetPhysicalConnectionsResult> Invoke(GetPhysicalConnectionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPhysicalConnectionsResult> getPhysicalConnections(GetPhysicalConnectionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:expressconnect/getPhysicalConnections:getPhysicalConnections
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Physical Connection IDs.
- Include
Reservation boolData - The include reservation data.
- Name
Regex string - A regex string to filter results by Physical Connection name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- Resources on Behalf of a State of the Resource Attribute Field. Valid values:
Canceled
,Enabled
,Terminated
.
- Ids []string
- A list of Physical Connection IDs.
- Include
Reservation boolData - The include reservation data.
- Name
Regex string - A regex string to filter results by Physical Connection name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- Resources on Behalf of a State of the Resource Attribute Field. Valid values:
Canceled
,Enabled
,Terminated
.
- ids List<String>
- A list of Physical Connection IDs.
- include
Reservation BooleanData - The include reservation data.
- name
Regex String - A regex string to filter results by Physical Connection name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- Resources on Behalf of a State of the Resource Attribute Field. Valid values:
Canceled
,Enabled
,Terminated
.
- ids string[]
- A list of Physical Connection IDs.
- include
Reservation booleanData - The include reservation data.
- name
Regex string - A regex string to filter results by Physical Connection name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- Resources on Behalf of a State of the Resource Attribute Field. Valid values:
Canceled
,Enabled
,Terminated
.
- ids Sequence[str]
- A list of Physical Connection IDs.
- include_
reservation_ booldata - The include reservation data.
- name_
regex str - A regex string to filter results by Physical Connection name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- Resources on Behalf of a State of the Resource Attribute Field. Valid values:
Canceled
,Enabled
,Terminated
.
- ids List<String>
- A list of Physical Connection IDs.
- include
Reservation BooleanData - The include reservation data.
- name
Regex String - A regex string to filter results by Physical Connection name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- Resources on Behalf of a State of the Resource Attribute Field. Valid values:
Canceled
,Enabled
,Terminated
.
getPhysicalConnections Result
The following output properties are available:
- Connections
List<Pulumi.
Ali Cloud. Express Connect. Outputs. Get Physical Connections Connection> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Include
Reservation boolData - Name
Regex string - Output
File string - Status string
- Connections
[]Get
Physical Connections Connection - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Include
Reservation boolData - Name
Regex string - Output
File string - Status string
- connections
List<Get
Physical Connections Connection> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- include
Reservation BooleanData - name
Regex String - output
File String - status String
- connections
Get
Physical Connections Connection[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- include
Reservation booleanData - name
Regex string - output
File string - status string
- connections
Sequence[Get
Physical Connections Connection] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- include_
reservation_ booldata - name_
regex str - output_
file str - status str
- connections List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- include
Reservation BooleanData - name
Regex String - output
File String - status String
Supporting Types
GetPhysicalConnectionsConnection
- Access
Point stringId - The Physical Leased Line Access Point ID.
- Ad
Location string - To Connect a Device Physical Location.
- Bandwidth string
- On the Bandwidth of the ECC Service and Physical Connection.
- Business
Status string - The Physical Connection to Which the Payment Status: Normal, financiallocked, securitylocked.
- Circuit
Code string - Operators for Physical Connection Circuit Provided Coding.
- Create
Time string - The Representative of the Creation Time Resources Attribute Field.
- Description string
- The Physical Connection to Which the Description.
- Enabled
Time string - The Physical Connection to Which the Activation Time.
- End
Time string - The Expiration Time.
- Has
Reservation stringData - HasReservationData.
- Id string
- The ID of the Physical Connection.
- Line
Operator string - Provides Access to the Physical Line Operator Value CT: China Telecom, CU: China Unicom, CM: china Mobile, CO: Other Chinese, Equinix:Equinix, Other: Other Overseas.
- Loa
Status string - Loa State.
- Payment
Type string - on Behalf of the Pay-as-You-Type of Resource Attribute Field.
- Peer
Location string - and an on-Premises Data Center Location.
- Physical
Connection stringId - on Behalf of the Resource Level Id of the Resources Property Fields.
- Physical
Connection stringName - on Behalf of the Resource Name of the Resources-Attribute Field.
- Port
Number string - To Connect a Device Port: The Port Number of.
- Port
Type string - The Physical Leased Line Access Port Type Value 100Base-T: Fast Electrical Ports, 1000Base-T (the Default): gigabit Electrical Ports, 1000Base-LX: Gigabit Singlemode Optical Ports (10Km), 10GBase-T: Gigabit Electrical Port, 10GBase-LR: Gigabit Singlemode Optical Ports (10Km).
- Redundant
Physical stringConnection Id - Redundant Physical Connection to Which the ID.
- Reservation
Active stringTime - The Renewal of the Entry into Force of the Time.
- Reservation
Internet stringCharge Type - Renewal Type.
- Reservation
Order stringType - Renewal Order Type.
- Spec string
- The Physical Connection to Which the Specifications.
- Status string
- Resources on Behalf of a State of the Resource Attribute Field.
- Type string
- Physical Private Line of Type. Default Value: VPC.
- Access
Point stringId - The Physical Leased Line Access Point ID.
- Ad
Location string - To Connect a Device Physical Location.
- Bandwidth string
- On the Bandwidth of the ECC Service and Physical Connection.
- Business
Status string - The Physical Connection to Which the Payment Status: Normal, financiallocked, securitylocked.
- Circuit
Code string - Operators for Physical Connection Circuit Provided Coding.
- Create
Time string - The Representative of the Creation Time Resources Attribute Field.
- Description string
- The Physical Connection to Which the Description.
- Enabled
Time string - The Physical Connection to Which the Activation Time.
- End
Time string - The Expiration Time.
- Has
Reservation stringData - HasReservationData.
- Id string
- The ID of the Physical Connection.
- Line
Operator string - Provides Access to the Physical Line Operator Value CT: China Telecom, CU: China Unicom, CM: china Mobile, CO: Other Chinese, Equinix:Equinix, Other: Other Overseas.
- Loa
Status string - Loa State.
- Payment
Type string - on Behalf of the Pay-as-You-Type of Resource Attribute Field.
- Peer
Location string - and an on-Premises Data Center Location.
- Physical
Connection stringId - on Behalf of the Resource Level Id of the Resources Property Fields.
- Physical
Connection stringName - on Behalf of the Resource Name of the Resources-Attribute Field.
- Port
Number string - To Connect a Device Port: The Port Number of.
- Port
Type string - The Physical Leased Line Access Port Type Value 100Base-T: Fast Electrical Ports, 1000Base-T (the Default): gigabit Electrical Ports, 1000Base-LX: Gigabit Singlemode Optical Ports (10Km), 10GBase-T: Gigabit Electrical Port, 10GBase-LR: Gigabit Singlemode Optical Ports (10Km).
- Redundant
Physical stringConnection Id - Redundant Physical Connection to Which the ID.
- Reservation
Active stringTime - The Renewal of the Entry into Force of the Time.
- Reservation
Internet stringCharge Type - Renewal Type.
- Reservation
Order stringType - Renewal Order Type.
- Spec string
- The Physical Connection to Which the Specifications.
- Status string
- Resources on Behalf of a State of the Resource Attribute Field.
- Type string
- Physical Private Line of Type. Default Value: VPC.
- access
Point StringId - The Physical Leased Line Access Point ID.
- ad
Location String - To Connect a Device Physical Location.
- bandwidth String
- On the Bandwidth of the ECC Service and Physical Connection.
- business
Status String - The Physical Connection to Which the Payment Status: Normal, financiallocked, securitylocked.
- circuit
Code String - Operators for Physical Connection Circuit Provided Coding.
- create
Time String - The Representative of the Creation Time Resources Attribute Field.
- description String
- The Physical Connection to Which the Description.
- enabled
Time String - The Physical Connection to Which the Activation Time.
- end
Time String - The Expiration Time.
- has
Reservation StringData - HasReservationData.
- id String
- The ID of the Physical Connection.
- line
Operator String - Provides Access to the Physical Line Operator Value CT: China Telecom, CU: China Unicom, CM: china Mobile, CO: Other Chinese, Equinix:Equinix, Other: Other Overseas.
- loa
Status String - Loa State.
- payment
Type String - on Behalf of the Pay-as-You-Type of Resource Attribute Field.
- peer
Location String - and an on-Premises Data Center Location.
- physical
Connection StringId - on Behalf of the Resource Level Id of the Resources Property Fields.
- physical
Connection StringName - on Behalf of the Resource Name of the Resources-Attribute Field.
- port
Number String - To Connect a Device Port: The Port Number of.
- port
Type String - The Physical Leased Line Access Port Type Value 100Base-T: Fast Electrical Ports, 1000Base-T (the Default): gigabit Electrical Ports, 1000Base-LX: Gigabit Singlemode Optical Ports (10Km), 10GBase-T: Gigabit Electrical Port, 10GBase-LR: Gigabit Singlemode Optical Ports (10Km).
- redundant
Physical StringConnection Id - Redundant Physical Connection to Which the ID.
- reservation
Active StringTime - The Renewal of the Entry into Force of the Time.
- reservation
Internet StringCharge Type - Renewal Type.
- reservation
Order StringType - Renewal Order Type.
- spec String
- The Physical Connection to Which the Specifications.
- status String
- Resources on Behalf of a State of the Resource Attribute Field.
- type String
- Physical Private Line of Type. Default Value: VPC.
- access
Point stringId - The Physical Leased Line Access Point ID.
- ad
Location string - To Connect a Device Physical Location.
- bandwidth string
- On the Bandwidth of the ECC Service and Physical Connection.
- business
Status string - The Physical Connection to Which the Payment Status: Normal, financiallocked, securitylocked.
- circuit
Code string - Operators for Physical Connection Circuit Provided Coding.
- create
Time string - The Representative of the Creation Time Resources Attribute Field.
- description string
- The Physical Connection to Which the Description.
- enabled
Time string - The Physical Connection to Which the Activation Time.
- end
Time string - The Expiration Time.
- has
Reservation stringData - HasReservationData.
- id string
- The ID of the Physical Connection.
- line
Operator string - Provides Access to the Physical Line Operator Value CT: China Telecom, CU: China Unicom, CM: china Mobile, CO: Other Chinese, Equinix:Equinix, Other: Other Overseas.
- loa
Status string - Loa State.
- payment
Type string - on Behalf of the Pay-as-You-Type of Resource Attribute Field.
- peer
Location string - and an on-Premises Data Center Location.
- physical
Connection stringId - on Behalf of the Resource Level Id of the Resources Property Fields.
- physical
Connection stringName - on Behalf of the Resource Name of the Resources-Attribute Field.
- port
Number string - To Connect a Device Port: The Port Number of.
- port
Type string - The Physical Leased Line Access Port Type Value 100Base-T: Fast Electrical Ports, 1000Base-T (the Default): gigabit Electrical Ports, 1000Base-LX: Gigabit Singlemode Optical Ports (10Km), 10GBase-T: Gigabit Electrical Port, 10GBase-LR: Gigabit Singlemode Optical Ports (10Km).
- redundant
Physical stringConnection Id - Redundant Physical Connection to Which the ID.
- reservation
Active stringTime - The Renewal of the Entry into Force of the Time.
- reservation
Internet stringCharge Type - Renewal Type.
- reservation
Order stringType - Renewal Order Type.
- spec string
- The Physical Connection to Which the Specifications.
- status string
- Resources on Behalf of a State of the Resource Attribute Field.
- type string
- Physical Private Line of Type. Default Value: VPC.
- access_
point_ strid - The Physical Leased Line Access Point ID.
- ad_
location str - To Connect a Device Physical Location.
- bandwidth str
- On the Bandwidth of the ECC Service and Physical Connection.
- business_
status str - The Physical Connection to Which the Payment Status: Normal, financiallocked, securitylocked.
- circuit_
code str - Operators for Physical Connection Circuit Provided Coding.
- create_
time str - The Representative of the Creation Time Resources Attribute Field.
- description str
- The Physical Connection to Which the Description.
- enabled_
time str - The Physical Connection to Which the Activation Time.
- end_
time str - The Expiration Time.
- has_
reservation_ strdata - HasReservationData.
- id str
- The ID of the Physical Connection.
- line_
operator str - Provides Access to the Physical Line Operator Value CT: China Telecom, CU: China Unicom, CM: china Mobile, CO: Other Chinese, Equinix:Equinix, Other: Other Overseas.
- loa_
status str - Loa State.
- payment_
type str - on Behalf of the Pay-as-You-Type of Resource Attribute Field.
- peer_
location str - and an on-Premises Data Center Location.
- physical_
connection_ strid - on Behalf of the Resource Level Id of the Resources Property Fields.
- physical_
connection_ strname - on Behalf of the Resource Name of the Resources-Attribute Field.
- port_
number str - To Connect a Device Port: The Port Number of.
- port_
type str - The Physical Leased Line Access Port Type Value 100Base-T: Fast Electrical Ports, 1000Base-T (the Default): gigabit Electrical Ports, 1000Base-LX: Gigabit Singlemode Optical Ports (10Km), 10GBase-T: Gigabit Electrical Port, 10GBase-LR: Gigabit Singlemode Optical Ports (10Km).
- redundant_
physical_ strconnection_ id - Redundant Physical Connection to Which the ID.
- reservation_
active_ strtime - The Renewal of the Entry into Force of the Time.
- reservation_
internet_ strcharge_ type - Renewal Type.
- reservation_
order_ strtype - Renewal Order Type.
- spec str
- The Physical Connection to Which the Specifications.
- status str
- Resources on Behalf of a State of the Resource Attribute Field.
- type str
- Physical Private Line of Type. Default Value: VPC.
- access
Point StringId - The Physical Leased Line Access Point ID.
- ad
Location String - To Connect a Device Physical Location.
- bandwidth String
- On the Bandwidth of the ECC Service and Physical Connection.
- business
Status String - The Physical Connection to Which the Payment Status: Normal, financiallocked, securitylocked.
- circuit
Code String - Operators for Physical Connection Circuit Provided Coding.
- create
Time String - The Representative of the Creation Time Resources Attribute Field.
- description String
- The Physical Connection to Which the Description.
- enabled
Time String - The Physical Connection to Which the Activation Time.
- end
Time String - The Expiration Time.
- has
Reservation StringData - HasReservationData.
- id String
- The ID of the Physical Connection.
- line
Operator String - Provides Access to the Physical Line Operator Value CT: China Telecom, CU: China Unicom, CM: china Mobile, CO: Other Chinese, Equinix:Equinix, Other: Other Overseas.
- loa
Status String - Loa State.
- payment
Type String - on Behalf of the Pay-as-You-Type of Resource Attribute Field.
- peer
Location String - and an on-Premises Data Center Location.
- physical
Connection StringId - on Behalf of the Resource Level Id of the Resources Property Fields.
- physical
Connection StringName - on Behalf of the Resource Name of the Resources-Attribute Field.
- port
Number String - To Connect a Device Port: The Port Number of.
- port
Type String - The Physical Leased Line Access Port Type Value 100Base-T: Fast Electrical Ports, 1000Base-T (the Default): gigabit Electrical Ports, 1000Base-LX: Gigabit Singlemode Optical Ports (10Km), 10GBase-T: Gigabit Electrical Port, 10GBase-LR: Gigabit Singlemode Optical Ports (10Km).
- redundant
Physical StringConnection Id - Redundant Physical Connection to Which the ID.
- reservation
Active StringTime - The Renewal of the Entry into Force of the Time.
- reservation
Internet StringCharge Type - Renewal Type.
- reservation
Order StringType - Renewal Order Type.
- spec String
- The Physical Connection to Which the Specifications.
- status String
- Resources on Behalf of a State of the Resource Attribute Field.
- type String
- Physical Private Line of Type. Default Value: VPC.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.