 | CloudNetworkServiceListPortsAsync Method |
Lists all ports associated with the account.
Namespace: Rackspace.CloudNetworks.v2Assembly: Rackspace (in Rackspace.dll) Version: 0.2.0+Branch.master.Sha.9ad6ce59ab4f7b2400f7a7c9c086aa1c5ea11c4e
Syntaxpublic Task<IPage<Port>> ListPortsAsync(
Identifier startPortId = null,
Nullable<int> pageSize = null,
CancellationToken cancellationToken = null
)
Public Function ListPortsAsync (
Optional startPortId As Identifier = Nothing,
Optional pageSize As Nullable(Of Integer) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IPage(Of Port))
public:
Task<IPage<Port^>^>^ ListPortsAsync(
Identifier^ startPortId = nullptr,
Nullable<int> pageSize = nullptr,
CancellationToken cancellationToken = nullptr
)
member ListPortsAsync :
?startPortId : Identifier *
?pageSize : Nullable<int> *
?cancellationToken : CancellationToken
(* Defaults:
let _startPortId = defaultArg startPortId null
let _pageSize = defaultArg pageSize null
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<IPage<Port>>
Parameters
- startPortId (Optional)
- Type: RackspaceIdentifier
- pageSize (Optional)
- Type: SystemNullableInt32
- cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Return Value
Type:
TaskIPagePort
A collection of port resources associated with the account.
See Also