• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Mapping Between API and SDK
  5. Java
  6. DMS

DMS

Interface

method

API

Queue

osclient.messageQueue().queue() .create("queue-name", "queue-display-name")

POST /v1.0/{project_id}/queues

osclient.messageQueue().queue().list()

GET /v1.0/{project_id}/queues

osclient.messageQueue().queue().get("queue-id")

GET /v1.0/{project_id}/queues/{queue_id}

osclient.messageQueue().queue().delete("queue-id")

DELETE /v1.0/{project_id}/queues/{queue_id}

Consumer Group

osclient.messageQueue().consumerGroups() .create("queue-id", groupNames)

POST /v1.0/{project_id}/queues/{queue_id}/groups

osclient.messageQueue().consumerGroups() .list("queue-id")

GET /v1.0/{project_id}/queues/{queue_id}/groups

osclient.messageQueue().consumerGroups() .delete("queue-id", "consumer-group-id")

DELETE /v1.0/{project_id}/queues/{queue_id}/groups/{consumer_group_id}

Queue Message

osclient.messageQueue().messages() .produce("queue-id", message)

POST /v1.0/{project_id}/queues/{queue_id}/messages

osclient.messageQueue().messages() .consume("queue-id", "consumer-group-id", maxMessages, timeWait)

GET /v1.0/{project_id}/queues/{queue_id}/groups/{consumer_group_id}/messages

osclient.messageQueue().messages() .confirmConsuming"queue-id", "consumer-group-id", consumeResult)

POST /v1.0/{project_id}/queues/{queue_id}/groups/{consumer_group_id}/ack

Quota

osclient.messageQueue().quotas().get()

GET /v1.0/{project_id}/quotas/dms