1234567891011121314151617 |
- def list_items(self):
- """Get all Azure Kubernetes Services"""
- self.log('List all Azure Kubernetes Services')
- try:
- response = self.containerservice_client.managed_clusters.list(
- self.resource_group)
- except AzureHttpError as exc:
- self.fail('Failed to list all items - {0}'.format(str(exc)))
- results = []
- for item in response:
- if self.has_tags(item.tags, self.tags):
- results.append(self.serialize_obj(item, AZURE_OBJECT_CLASS))
- return results
|