Skip to main content

UpdateInstanceBody

Type Alias UpdateInstanceBody 

Source
pub type UpdateInstanceBody = InstanceUpdateRequestInput;

Aliased Type§

pub struct UpdateInstanceBody {
    pub iam_role: Option<String>,
    pub description: Option<String>,
    pub metadata: Option<BTreeMap<String, String>>,
    pub tags: Option<BTreeMap<String, String>>,
}

Fields§

§iam_role: Option<String>

Attach or replace the instance workload role using its ID, name, or CRN. Omit this field to keep the current role; send an empty string to detach it. Null is not accepted. Requires compute:UpdateInstance; attach/replace also require iam:PassRole and a role trust policy allowing this instance. Only running or stopped customer-managed instances with no operation in progress support role edits. Pool members use the pool launch template. New IMDS requests observe the committed association immediately. Previously issued credentials are not revoked and remain valid until expiry (up to one hour); in-flight requests may complete with their prior association.

§description: Option<String>§metadata: Option<BTreeMap<String, String>>§tags: Option<BTreeMap<String, String>>