 | RackConnectServiceExtensionsCreatePublicIP Method |
Allocates a public IP address to the current account.
Namespace: Rackspace.SynchronousAssembly: Rackspace (in Rackspace.dll) Version: 0.2.0+Branch.master.Sha.9ad6ce59ab4f7b2400f7a7c9c086aa1c5ea11c4e
Syntaxpublic static PublicIP CreatePublicIP(
this RackConnectService rackConnectService,
PublicIPCreateDefinition definition
)
<ExtensionAttribute>
Public Shared Function CreatePublicIP (
rackConnectService As RackConnectService,
definition As PublicIPCreateDefinition
) As PublicIP
public:
[ExtensionAttribute]
static PublicIP^ CreatePublicIP(
RackConnectService^ rackConnectService,
PublicIPCreateDefinition^ definition
)
[<ExtensionAttribute>]
static member CreatePublicIP :
rackConnectService : RackConnectService *
definition : PublicIPCreateDefinition -> PublicIP
Parameters
- rackConnectService
- Type: Rackspace.RackConnect.v3RackConnectService
- definition
- Type: Rackspace.RackConnect.v3PublicIPCreateDefinition
The public IP definition.
Return Value
Type:
PublicIPThe 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.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
RackConnectService. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also