openstack.compute.v2.limits¶
The Limits Class¶
The Limits class inherits from Resource.
-
class
openstack.compute.v2.limits.Limits(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()andResource.existing().Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
Trueif this Resource exists on the server,Falseif it does not.
-
get(session, args=None, include_headers=False)¶ Get the Limits resource.
Parameters: - session (
Session) – The session to use for making this request. - args (dict) – An optional dict that will be translated into query strings for retrieving the object when specified.
Returns: A Limits instance
Return type: - session (
The AbsoluteLimits Class¶
The AbsoluteLimits class inherits from Resource.
-
class
openstack.compute.v2.limits.AbsoluteLimits(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()andResource.existing().Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
Trueif this Resource exists on the server,Falseif it does not.
-
image_meta= None¶ The number of key-value pairs that can be set as image metadata.
-
personality= None¶ The maximum number of personality contents that can be supplied.
-
personality_size= None¶ The maximum size, in bytes, of a personality.
-
security_group_rules= None¶ The maximum amount of security group rules allowed.
-
security_groups= None¶ The maximum amount of security groups allowed.
-
security_groups_used= None¶ The amount of security groups currently in use.
-
server_meta= None¶ The number of key-value pairs that can be set as sever metadata.
-
total_cores= None¶ The maximum amount of cores.
-
total_cores_used= None¶ The amount of cores currently in use.
-
floating_ips= None¶ The maximum amount of floating IPs.
-
floating_ips_used= None¶ The amount of floating IPs currently in use.
-
instances= None¶ The maximum amount of instances.
-
instances_used= None¶ The amount of instances currently in use.
-
keypairs= None¶ The maximum amount of keypairs.
-
total_ram= None¶ The maximum RAM size in megabytes.
-
total_ram_used= None¶ The RAM size in megabytes currently in use.
-
server_groups= None¶ The maximum amount of server groups.
-
server_groups_used= None¶ The amount of server groups currently in use.
-
server_group_members= None¶ The maximum number of members in a server group.
The RateLimits Class¶
The RateLimits class inherits from Resource.
-
class
openstack.compute.v2.limits.RateLimits(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()andResource.existing().Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
Trueif this Resource exists on the server,Falseif it does not.
-
limits= None¶ A list of the specific limits that apply to the
regexanduri.
-
regex= None¶ A regex representing which routes this rate limit applies to.
-
uri= None¶ A URI representing which routes this rate limit applies to.