百度智能云

All Product Document

          Baremetal Compute Sevice

          Package

          Query Package List

          Query the list and detailed information of all BBC instances by the following codes:

          def list_flavors(self): 
              # Perform query package list operation 
              self.client.list_flavors() 

          Query Package Details

          Use the following codes to query the detailed information of the specified package:

          def get_flavor(self): 
              # Set the instance_id you want to operate 
              flavor_id = 'your-choose-flavor-id' 
              self.client.get_flavor(flavor_id = flavor_id) 

          Query RAID Details

          Use the following codes to query the RAID mode and disk size of the specified package:

          def get_flavor_raid(self): 
              # Set the instance_id you want to operate 
              flavor_id = 'your-choose-flavor-id' 
              self.client.get_flavor_raid(flavor_id = flavor_id) 
          Previous
          Deployment Set
          Next
          Operation Log