Managing Attributes of an Account Resource

Defines attribute management and lists the available operations.

The management of attributes of an account resource includes viewing and modifying the value of specific attributes for an account resource.

The APIs and CLI provide operations for:

Use either the cloud infrastructure API actions or the cloud infrastructure CLI command to perform these operations.

About Account Resource Attributes

Describes an account and each of the account’s resources.

A cloud account consists of a set of resources. Each resource has a set of attributes. To manage the account, acloud user manages the attributes of the following account resources: volumes, snapshots, vServers, server templates, and vNets.

Viewing Attributes of an Account Resource

Lists the API action and CLI command for displaying attributes of an account.

A cloud user can view the value of specific attributes of an account resource. To view the attribute value, the cloud user needs to specify:

  • ID of a valid account resource.

  • One or more attribute names for the account resource. Attribute names for a resource are listed when viewing an account resource information.


Cloud Infrastructure API Action Cloud Infrastructure CLI Command

DescribeAttributesRequest

iaas-describe-attributes


Example 3-91 Viewing attributes of an account resource using the Cloud Infrastructure API

https://<EnterpriseControllerHostname>/iaas/?Action=DescribeAttributes&Version=1&Timestamp=1318464041596&Expires=1318464341596&attrNames.4=shared&resourceId=VOL-246b5c62-4072-41cf-885b-99d6c63583bd&attrNames.3=size&attrNames.2=status&attrNames.1=id&AccessKeyId=AK_2&Signature=SIGNATURE_HAS_BEEN_REMOVED_FOR_THE_READABILITY_OF_THE_REQUEST&SignatureMethod=SHA512withRSA&SignatureVersion=1

Example 3-92 Viewing attributes of an account resource using the Cloud Infrastructure CLI

iaas-describe-attributes --base-url https://<EnterpriseControllerHostname>/ -a ak.file --id VNET-7403e87f-1bab-4097-98ae-ea72d8fe4b3f --attr-names name

Modifying Attributes of an Account Resource

Lists the API action and CLI command for modifying an account.

A cloud user can modify the values of the attributes of the following account resources: volumes, snapshots, vServers, server templates, and vNets. The attributes that are editable for these account resources are name and description.

When the HighAvailabilityUserControl capability is enabled in the vDC, cloud users can also enable or disable high availability for an existing vServer by modifying the HA attribute of the vServer.


Cloud Infrastructure API Action Cloud Infrastructure CLI Command

ModifyAttributesRequest

iaas-modify-attributes


Example 3-93 Modifying vNet attributes using the Cloud Infrastructure API

https://<EnterpriseControllerHostname>/iaas/?Action=ModifyAttributes&Version=1&Timestamp=1318464546890&Expires=1318464846890&resourceId=VOL-246b5c62-4072-41cf-885b-99d6c63583bd&attributes.2.value=myNewDescription&attributes.2.name=description&attributes.1.name=name&attributes.1.value=myNewName&AccessKeyId=AK_2&Signature=SIGNATURE_HAS_BEEN_REMOVED_FOR_THE_READABILITY_OF_THE_REQUEST&SignatureMethod=SHA512withRSA&SignatureVersion=1

Example 3-94 Modifying vNet attributes using the Cloud Infrastructure CLI

iaas-modify-attributes --base-url https://<EnterpriseControllerHostname>/ -a ak.file --id VNET-7403e87f-1bab-4097-98ae-ea72d8fe4b3f --attributes name=myNewName