Return the list of every mapping type available.
list(str
)
Get the service list
List of every services.
Return a service.
service_id (uuid
) – UUID of the service to filter on.
Create hashmap service.
Delete the service and all the sub keys recursively.
service_id (uuid
) – UUID of the service to delete.
Type describing a service.
A service is directly mapped to the usage key, the collected service.
Data samples:
{
"name": "compute",
"service_id": "a733d0e1-1ec9-4800-8df8-671e4affd017"
}
b'<value>\n <service_id>a733d0e1-1ec9-4800-8df8-671e4affd017</service_id>\n <name>compute</name>\n</value>'
Name of the service.
UUID of the service.
Type describing a list of services.
Data samples:
{
"services": [
{
"name": "compute",
"service_id": "a733d0e1-1ec9-4800-8df8-671e4affd017"
}
]
}
b'<value>\n <services>\n <item>\n <service_id>a733d0e1-1ec9-4800-8df8-671e4affd017</service_id>\n <name>compute</name>\n </item>\n </services>\n</value>'
List of services.
Get the field list.
service_id (uuid
) – Service’s UUID to filter on.
List of every fields.
Return a field.
field_id (uuid
) – UUID of the field to filter on.
Create a field.
Delete the field and all the sub keys recursively.
field_id (uuid
) – UUID of the field to delete.
Type describing a field.
A field is mapping a value of the ‘desc’ dict of the CloudKitty data. It’s used to map the name of a metadata.
Data samples:
{
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"name": "image_id",
"service_id": "a733d0e1-1ec9-4800-8df8-671e4affd017"
}
b'<value>\n <field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>\n <name>image_id</name>\n <service_id>a733d0e1-1ec9-4800-8df8-671e4affd017</service_id>\n</value>'
UUID of the field.
Name of the field.
UUID of the parent service.
Type describing a list of fields.
Data samples:
{
"fields": [
{
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"name": "image_id",
"service_id": "a733d0e1-1ec9-4800-8df8-671e4affd017"
}
]
}
b'<value>\n <fields>\n <item>\n <field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>\n <name>image_id</name>\n <service_id>a733d0e1-1ec9-4800-8df8-671e4affd017</service_id>\n </item>\n </fields>\n</value>'
List of fields.
Get the mapping list
service_id (uuid
) – Service UUID to filter on.
field_id (uuid
) – Field UUID to filter on.
group_id (uuid
) – Group UUID to filter on.
no_group (bool
) – Filter on orphaned mappings.
tenant_id (uuid
) – Tenant UUID to filter on.
filter_tenant (bool
) – Explicitly filter on tenant (default is to not
filter on tenant). Useful if you want to filter
on tenant being None.
List of every mappings.
Return a mapping.
mapping_id (uuid
) – UUID of the mapping to filter on.
Create a mapping.
Update a mapping.
mapping_id (uuid
) – UUID of the mapping to update.
mapping (Mapping
) – Mapping data to insert.
Delete a mapping.
mapping_id (uuid
) – UUID of the mapping to delete.
Get the group attached to the mapping.
mapping_id (uuid
) – UUID of the mapping to filter on.
Type describing a Mapping.
A mapping is used to apply rating rules based on a value, if the parent is a field then it’s check the value of a metadata. If it’s a service then it directly apply the rate to the volume.
Data samples:
{
"cost": "4.2",
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"mapping_id": "39dbd39d-f663-4444-a795-fb19d81af136",
"tenant_id": "7977999e-2e25-11e6-a8b2-df30b233ffcb",
"type": "flat",
"value": "m1.micro"
}
b'<value>\n <mapping_id>39dbd39d-f663-4444-a795-fb19d81af136</mapping_id>\n <value>m1.micro</value>\n <type>flat</type>\n <cost>4.2</cost>\n <field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>\n <tenant_id>7977999e-2e25-11e6-a8b2-df30b233ffcb</tenant_id>\n</value>'
Value of the mapping.
UUID of the field.
UUID of the hashmap group.
Type of the mapping.
UUID of the mapping.
UUID of the service.
ID of the hashmap tenant.
Key of the mapping.
Type describing a list of mappings.
Data samples:
{
"mappings": [
{
"cost": "4.2",
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"mapping_id": "39dbd39d-f663-4444-a795-fb19d81af136",
"tenant_id": "7977999e-2e25-11e6-a8b2-df30b233ffcb",
"type": "flat",
"value": "m1.micro"
}
]
}
b'<value>\n <mappings>\n <item>\n <mapping_id>39dbd39d-f663-4444-a795-fb19d81af136</mapping_id>\n <value>m1.micro</value>\n <type>flat</type>\n <cost>4.2</cost>\n <field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>\n <tenant_id>7977999e-2e25-11e6-a8b2-df30b233ffcb</tenant_id>\n </item>\n </mappings>\n</value>'
List of mappings.
Type describing a Threshold.
A threshold is used to apply rating rules based on a level, if the parent is a field then the level is checked against a metadata. If it’s a service then it’s the quantity of the resource that is checked.
Data samples:
{
"cost": "4.2",
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"level": "1024",
"tenant_id": "7977999e-2e25-11e6-a8b2-df30b233ffcb",
"threshold_id": "39dbd39d-f663-4444-a795-fb19d81af136",
"type": "flat"
}
b'<value>\n <threshold_id>39dbd39d-f663-4444-a795-fb19d81af136</threshold_id>\n <level>1024</level>\n <type>flat</type>\n <cost>4.2</cost>\n <field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>\n <tenant_id>7977999e-2e25-11e6-a8b2-df30b233ffcb</tenant_id>\n</value>'
Value of the threshold.
UUID of the field.
UUID of the hashmap group.
Level of the threshold.
Type of the threshold.
UUID of the service.
ID of the hashmap tenant.
UUID of the threshold.
Type describing a list of mappings.
Data samples:
{
"thresholds": [
{
"cost": "4.2",
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"level": "1024",
"tenant_id": "7977999e-2e25-11e6-a8b2-df30b233ffcb",
"threshold_id": "39dbd39d-f663-4444-a795-fb19d81af136",
"type": "flat"
}
]
}
b'<value>\n <thresholds>\n <item>\n <threshold_id>39dbd39d-f663-4444-a795-fb19d81af136</threshold_id>\n <level>1024</level>\n <type>flat</type>\n <cost>4.2</cost>\n <field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>\n <tenant_id>7977999e-2e25-11e6-a8b2-df30b233ffcb</tenant_id>\n </item>\n </thresholds>\n</value>'
List of thresholds.
Get the group list
List of every group.
Return a group.
group_id (uuid
) – UUID of the group to filter on.
Create a group.
Delete a group.
group_id (uuid
) – UUID of the group to delete.
recursive (bool
) – Delete mappings recursively.
Get the mappings attached to the group.
group_id (uuid
) – UUID of the group to filter on.
Get the thresholds attached to the group.
group_id (uuid
) – UUID of the group to filter on.
Type describing a group.
A group is used to divide calculations. It can be used to create a group for the instance rating (flavor) and one if we have premium images (image_id). So you can take into account multiple parameters during the rating.
Data samples:
{
"group_id": "afe898cb-86d8-4557-ad67-f4f01891bbee",
"name": "instance_rating"
}
b'<value>\n <group_id>afe898cb-86d8-4557-ad67-f4f01891bbee</group_id>\n <name>instance_rating</name>\n</value>'
UUID of the group.
Name of the group.
Type describing a list of groups.
Data samples:
{
"groups": [
{
"group_id": "afe898cb-86d8-4557-ad67-f4f01891bbee",
"name": "instance_rating"
}
]
}
b'<value>\n <groups>\n <item>\n <group_id>afe898cb-86d8-4557-ad67-f4f01891bbee</group_id>\n <name>instance_rating</name>\n </item>\n </groups>\n</value>'
List of groups.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.