 | RackConnectServiceCreatePublicIPAsync Method |
Allocates a public IP address to the current account.
Namespace: Rackspace.RackConnect.v3Assembly: Rackspace (in Rackspace.dll) Version: 0.2.0+Branch.master.Sha.9ad6ce59ab4f7b2400f7a7c9c086aa1c5ea11c4e
Syntaxpublic Task<PublicIP> CreatePublicIPAsync(
PublicIPCreateDefinition definition,
CancellationToken cancellationToken = null
)
Public Function CreatePublicIPAsync (
definition As PublicIPCreateDefinition,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of PublicIP)
public:
Task<PublicIP^>^ CreatePublicIPAsync(
PublicIPCreateDefinition^ definition,
CancellationToken cancellationToken = nullptr
)
member CreatePublicIPAsync :
definition : PublicIPCreateDefinition *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<PublicIP>
Parameters
- definition
- Type: Rackspace.RackConnect.v3PublicIPCreateDefinition
The public IP definition. - 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:
TaskPublicIPThe identifer of the public IP address while it is being provisioned. Use
WaitUntilPublicIPIsActiveAsync(Identifier, NullableTimeSpan, NullableTimeSpan, IProgressBoolean, CancellationToken) to wait for the IP address to be fully active.
See Also