Skip to main content

ServerResponse

Struct ServerResponse 

Source
pub struct ServerResponse {
Show 22 fields pub access_ipv4: String, pub access_ipv6: String, pub addresses: BTreeMap<String, Vec<AddressesItem>>, pub created: String, pub description: Option<String>, pub fault: Option<Fault>, pub flavor: Flavor, pub host_id: String, pub id: String, pub image: ImageEnum, pub links: Vec<Links>, pub locked: bool, pub metadata: BTreeMap<String, String>, pub name: Option<String>, pub os_dcf_disk_config: String, pub progress: Option<f32>, pub status: Status, pub tags: Vec<String>, pub tenant_id: String, pub trusted_image_certificates: Vec<String>, pub updated: String, pub user_id: String,
}
Expand description

Server response representation

Fields§

§access_ipv4: String

IPv4 address that should be used to access this server. May be automatically set by the provider.

§access_ipv6: String

IPv6 address that should be used to access this server. May be automatically set by the provider.

§addresses: BTreeMap<String, Vec<AddressesItem>>

The addresses for the server. Servers with status BUILD hide their addresses information. This view is not updated immediately. Please consult with OpenStack Networking API for up-to-date information.

§created: String

The date and time when the resource was created. The date and time stamp format is ISO 8601

CCYY-MM-DDThh:mm:ss±hh:mm

For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

§description: Option<String>

The description of the server. Before microversion 2.19 this was set to the server name.

New in version 2.19

§fault: Option<Fault>

A fault object. Only displayed when the server status is ERROR or DELETED and a fault occurred.

§flavor: Flavor

Before microversion 2.47 this contains the ID and links for the flavor used to boot the server instance. This can be an empty object in case flavor information is no longer present in the system.

As of microversion 2.47 this contains a subset of the actual flavor information used to create the server instance, represented as a nested dictionary.

§host_id: String

An ID string representing the host. This is a hashed value so will not actually look like a hostname, and is hashed with data from the project_id, so the same physical host as seen by two different project_ids, will be different. It is useful when within the same project you need to determine if two instances are on the same or different physical hosts for the purposes of availability or performance.

§id: String

The UUID of the server.

§image: ImageEnum

The UUID and links for the image for your server instance. The image object will be an empty string when you boot the server from a volume.

§links: Vec<Links>

Links to the resources in question. See API Guide / Links and References for more info.

§locked: bool

True if the instance is locked otherwise False.

New in version 2.9

§metadata: BTreeMap<String, String>

A dictionary of metadata key-and-value pairs, which is maintained for backward compatibility.

§name: Option<String>

The server name.

§os_dcf_disk_config: String

Disk configuration. The value is either:

  • AUTO. The API builds the server with a single partition the size of the target flavor disk. The API automatically adjusts the file system to fit the entire partition.
  • MANUAL. The API builds the server by using the partition scheme and file system that is in the source image. If the target flavor disk is larger, The API does not partition the remaining disk space.
§progress: Option<f32>

A percentage value of the operation progress. This parameter only appears when the server status is ACTIVE, BUILD, REBUILD, RESIZE, VERIFY_RESIZE or MIGRATING.

§status: Status

The server status.

§tags: Vec<String>

A list of tags. The maximum count of tags in this list is 50.

New in version 2.26

§tenant_id: String

The UUID of the tenant in a multi-tenancy cloud.

§trusted_image_certificates: Vec<String>

A list of trusted certificate IDs, that were used during image signature verification to verify the signing certificate. The list is restricted to a maximum of 50 IDs. The value is null if trusted certificate IDs are not set.

New in version 2.63

§updated: String

The date and time when the resource was updated. The date and time stamp format is ISO 8601

CCYY-MM-DDThh:mm:ss±hh:mm

For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

§user_id: String

The user ID of the user who owns the server.

Trait Implementations§

Source§

impl Clone for ServerResponse

Source§

fn clone(&self) -> ServerResponse

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de> Deserialize<'de> for ServerResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ServerResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructTable for &ServerResponse

Source§

fn class_headers<O: StructTableOptions>(options: &O) -> Option<Vec<String>>

Return Vector of table headers (attribute titles to be returned) that are not instance specific (i.e. struct)
Source§

fn data<O: StructTableOptions>(&self, options: &O) -> Vec<Option<String>>

Return vector of selected fields as Option<String>
Source§

fn status(&self) -> Option<String>

Return structure status property
Source§

fn instance_headers<O>(&self, _config: &O) -> Option<Vec<String>>

Return Vector of table headers (attribute titles to be returned) from the instance that are instance specific (i.e. HashMap)
Source§

impl StructTable for ServerResponse

Source§

fn class_headers<O: StructTableOptions>(options: &O) -> Option<Vec<String>>

Return Vector of table headers (attribute titles to be returned) that are not instance specific (i.e. struct)
Source§

fn data<O: StructTableOptions>(&self, options: &O) -> Vec<Option<String>>

Return vector of selected fields as Option<String>
Source§

fn status(&self) -> Option<String>

Return structure status property
Source§

fn instance_headers<O>(&self, _config: &O) -> Option<Vec<String>>

Return Vector of table headers (attribute titles to be returned) from the instance that are instance specific (i.e. HashMap)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,