Esempio n. 1
0
def cli(env, account_id, queue_name, datacenter, network):
    """Detail a queue."""

    manager = SoftLayer.MessagingManager(env.client)
    mq_client = manager.get_connection(account_id, datacenter=datacenter, network=network)
    queue = mq_client.get_queue(queue_name)
    env.fout(mq.queue_table(queue))
Esempio n. 2
0
def cli(env, account_id, queue_name, datacenter, network):
    """Detail a queue."""

    manager = SoftLayer.MessagingManager(env.client)
    mq_client = manager.get_connection(account_id,
                                       datacenter=datacenter, network=network)
    queue = mq_client.get_queue(queue_name)
    env.fout(mq.queue_table(queue))
Esempio n. 3
0
def cli(env, account_id, queue_name, datacenter, network, visibility_interval, expiration, tag):
    """Create a queue."""

    manager = SoftLayer.MessagingManager(env.client)
    mq_client = manager.get_connection(account_id, datacenter=datacenter, network=network)

    queue = mq_client.create_queue(queue_name, visibility_interval=visibility_interval, expiration=expiration, tags=tag)
    return mq.queue_table(queue)
def cli(env, account_id, queue_name, datacenter, network, visibility_interval,
        expiration, tag):
    """Create a queue."""

    manager = SoftLayer.MessagingManager(env.client)
    mq_client = manager.get_connection(account_id,
                                       datacenter=datacenter,
                                       network=network)

    queue = mq_client.create_queue(
        queue_name,
        visibility_interval=visibility_interval,
        expiration=expiration,
        tags=tag,
    )
    env.fout(mq.queue_table(queue))