CloudServersProviderUpdateServer Method |
Updates the editable attributes for the specified server.
Namespace: net.openstack.Providers.RackspaceAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax public bool UpdateServer(
string serverId,
string name = null,
IPAddress accessIPv4 = null,
IPAddress accessIPv6 = null,
string region = null,
CloudIdentity identity = null
)
Public Function UpdateServer (
serverId As String,
Optional name As String = Nothing,
Optional accessIPv4 As IPAddress = Nothing,
Optional accessIPv6 As IPAddress = Nothing,
Optional region As String = Nothing,
Optional identity As CloudIdentity = Nothing
) As Boolean
public:
virtual bool UpdateServer(
String^ serverId,
String^ name = nullptr,
IPAddress^ accessIPv4 = nullptr,
IPAddress^ accessIPv6 = nullptr,
String^ region = nullptr,
CloudIdentity^ identity = nullptr
) sealed
abstract UpdateServer :
serverId : string *
?name : string *
?accessIPv4 : IPAddress *
?accessIPv6 : IPAddress *
?region : string *
?identity : CloudIdentity
(* Defaults:
let _name = defaultArg name null
let _accessIPv4 = defaultArg accessIPv4 null
let _accessIPv6 = defaultArg accessIPv6 null
let _region = defaultArg region null
let _identity = defaultArg identity null
*)
-> bool
override UpdateServer :
serverId : string *
?name : string *
?accessIPv4 : IPAddress *
?accessIPv6 : IPAddress *
?region : string *
?identity : CloudIdentity
(* Defaults:
let _name = defaultArg name null
let _accessIPv4 = defaultArg accessIPv4 null
let _accessIPv6 = defaultArg accessIPv6 null
let _region = defaultArg region null
let _identity = defaultArg identity null
*)
-> bool
Parameters
- serverId
- Type: SystemString
The server ID. This is obtained from ServerBase.Id. - name (Optional)
- Type: SystemString
The new name for the server. If the value is , the server name is not changed. - accessIPv4 (Optional)
- Type: System.NetIPAddress
The new IP v4 address for the server, or None to remove the configured IP v4 address for the server. If the value is , the server's IP v4 address is not updated. - accessIPv6 (Optional)
- Type: System.NetIPAddress
The new IP v6 address for the server, or None to remove the configured IP v6 address for the server. If the value is , the server's IP v6 address is not updated. - region (Optional)
- Type: SystemString
The region in which to execute this action. If not specified, the user's default region will be used. - identity (Optional)
- Type: net.openstack.Core.DomainCloudIdentity
The cloud identity to use for this request. If not specified, the default identity for the current provider instance will be used.
Return Value
Type:
Boolean if the server was successfully updated; otherwise
.
Implements
IComputeProviderUpdateServer(String, String, IPAddress, IPAddress, String, CloudIdentity)Exceptions Remarks
Server names are not guaranteed to be unique.
Version Information .NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also