Пример #1
0
def do_DescribeSecurityGroups(client, args):
    """ List all security groups """
    #p = utils.convert_filter(args.filter)
    val = client.DescribeSecurityGroups(args.id, args.name, args.limit,
                                        args.offset,
                                        utils.convert_filter(args.filter))
    utils.print_list(val, 'SecurityGroup')
Пример #2
0
def do_DescribeRDSAlarms(client, args):
    """List redis metric check"""
    val = client.DescribeRDSAlarms()
    utils.print_list(val, 'RDSAlarm')
Пример #3
0
def do_DescribeRDSTypes(client, args):
    """ List all rds types """
    val = client.DescribeRDSTypes(args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'RDSType')
Пример #4
0
def do_DescribeAvailabilityZones(client, args):
    """ List all availability zones """
    val = client.DescribeAvailabilityZones(args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'AvailabilityZone')
Пример #5
0
def do_DescribeTCPAlarms(client, args):
    """List tcp check"""
    val = client.DescribeTCPAlarms()
    utils.print_list(val, 'TCPAlarm')
Пример #6
0
def do_DescribeMetricAlarms(client, args):
    """List metric check"""
    val = client.DescribeMetricAlarms()
    utils.print_list(val, 'MetricAlarm')
Пример #7
0
def do_DescribeKeyPairs(client, args):
    """ List all keypairs """
    val = client.DescribeKeyPairs(args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'KeyPair')
Пример #8
0
def do_DescribeInstances(client, args):
    """ Get details of all or specified instances """
    val = client.DescribeInstances(args.id, args.name, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'Instance')
Пример #9
0
def do_DescribeAvailabilityZones(client, args):
    """ List all availability zones """
    val = client.DescribeAvailabilityZones(args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'AvailabilityZone')
Пример #10
0
def do_DescribeTCPAlarms(client, args):
    """List tcp check"""
    val = client.DescribeTCPAlarms()
    utils.print_list(val, 'TCPAlarm')
Пример #11
0
def do_DescribeAliveAlarms(client, args):
    """List alive check"""
    val = client.DescribeAliveAlarms()
    utils.print_list(val, 'AliveAlarm')
Пример #12
0
def do_DescribeMetricAlarms(client, args):
    """List metric check"""
    val = client.DescribeMetricAlarms()
    utils.print_list(val, 'MetricAlarm')
Пример #13
0
def do_DescribeAlarmHistory(client, args):
    """List monitor alarm history"""
    val = client.DescribeAlarmHistory(args.limit, args.offset)
    utils.print_list(val, 'AlarmHistory')
Пример #14
0
def do_DescribeKeyPairs(client, args):
    """ List all keypairs """
    val = client.DescribeKeyPairs(args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'KeyPair')
Пример #15
0
def do_DescribeAddresses(client, args):
    """Describe EIP list"""
    val = client.DescribeAddresses(args.id, args.limit, args.offset)
    utils.print_list(val, 'Address')
Пример #16
0
def do_DescribeVolumes(client, args):
    """Describe specific Volume listener info"""
    val = client.DescribeVolumes(args.ebs_id, args.limit, args.offset)
    utils.print_list(val, 'Volume')
Пример #17
0
def do_DescribeRDS(client, args):
    """ Get details of all or specified rds """
    val = client.DescribeRDS(args.id, args.name, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'RDS')
Пример #18
0
def do_DescribeTemplates(client, args):
    """ List all image templates """
    val = client.DescribeTemplates()
    utils.print_list(val, 'Template')
Пример #19
0
def do_DescribeRDSTypes(client, args):
    """ List all rds types """
    val = client.DescribeRDSTypes(args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'RDSType')
Пример #20
0
def do_DescribeAlarmHistory(client, args):
    """List monitor alarm history"""
    val = client.DescribeAlarmHistory(args.limit, args.offset)
    utils.print_list(val, 'AlarmHistory')
Пример #21
0
def do_DescribeRDSEngines(client, args):
    """ List all rds engines """
    val = client.DescribeRDSEngines()
    utils.print_list(val, 'RDSEngine')
Пример #22
0
def do_DescribeAliveAlarms(client, args):
    """List alive check"""
    val = client.DescribeAliveAlarms()
    utils.print_list(val, 'AliveAlarm')
Пример #23
0
def do_DescribeRDSAlarms(client, args):
    """List redis metric check"""
    val = client.DescribeRDSAlarms()
    utils.print_list(val, 'RDSAlarm')
Пример #24
0
def do_DescribeSecurityGroups(client, args):
    """ List all security groups """
    #p = utils.convert_filter(args.filter)
    val = client.DescribeSecurityGroups(args.id, args.name, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'SecurityGroup')
Пример #25
0
def do_DescribeRDSMetrics(client, args):
    """List monitor metrics"""
    val = client.DescribeRDSMetrics(args.rid)
    utils.print_list(val, 'Metric')
Пример #26
0
def do_DescribeRDS(client, args):
    """ Get details of all or specified rds """
    val = client.DescribeRDS(args.id, args.name, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'RDS')
Пример #27
0
def do_DescribeInstanceTypes(client, args):
    """ List all instance types """
    val = client.DescribeInstanceTypes(args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'InstanceType')
Пример #28
0
def do_DescribeRDSEngines(client, args):
    """ List all rds engines """
    val = client.DescribeRDSEngines()
    utils.print_list(val, 'RDSEngine')
Пример #29
0
def do_DescribeInstances(client, args):
    """ Get details of all or specified instances """
    val = client.DescribeInstances(args.id, args.name, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'Instance')
Пример #30
0
def do_DescribeRDSMetrics(client, args):
    """List monitor metrics"""
    val = client.DescribeRDSMetrics(args.rid)
    utils.print_list(val, 'Metric')
Пример #31
0
def do_DescribeInstanceVolumes(client, args):
    """ List all disks of an instance """
    val = client.DescribeInstanceVolumes(args.id, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'InstanceVolume')
Пример #32
0
def do_DescribeInstanceTypes(client, args):
    """ List all instance types """
    val = client.DescribeInstanceTypes(args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'InstanceType')
Пример #33
0
def do_DescribeInstanceNetworkInterfaces(client, args):
    """ List all network interfaces of an instance """
    val = client.DescribeInstanceNetworkInterfaces(args.id, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'InstanceNetworkInterface')
Пример #34
0
def do_DescribeVolumeSnapshots(client, args):
    """Describe specific Volume Snapshot listener info"""
    val = client.DescribeVolumeSnapshots(args.ebs_snapshot_ids, args.limit, args.offset)
    utils.print_list(val, 'VolumeSnapshot')
Пример #35
0
def do_DescribeInstanceNetworkInterfaces(client, args):
    """ List all network interfaces of an instance """
    val = client.DescribeInstanceNetworkInterfaces(args.id, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'InstanceNetworkInterface')
Пример #36
0
def do_DescribeInstanceVolumes(client, args):
    """ List all disks of an instance """
    val = client.DescribeInstanceVolumes(args.id, args.limit, args.offset, utils.convert_filter(args.filter))
    utils.print_list(val, 'InstanceVolume')
Пример #37
0
def do_DescribeTemplates(client, args):
    """ List all image templates """
    val = client.DescribeTemplates()
    utils.print_list(val, 'Template')