{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"CreateExchangeBody":{"properties":{"arguments":{"description":"参数列表","type":"object"},"auto_delete":{"description":"是否自动删除","type":"boolean"},"durable":{"description":"是否持久化(AMQP版本默认持久化,不涉及此参数)。","type":"boolean"},"internal":{"description":"内部Exchange(AMQP版本不支持内部Exchange,不涉及此参数)。","type":"boolean"},"name":{"description":"Exchange名称","type":"string"},"type":{"description":"**参数解释**:\nExchange类型。\n**约束限制**:\n不涉及。\n**取值范围**:\n- direct:该类型Exchange会将消息路由到Routing Key完全匹配的Queue中。\n- fanout:该类型Exchange会将消息路由到所有与其绑定的Queue中。\n- topic:该类型Exchange将Routing Key进行通配符匹配,然后将消息路由到匹配成功的Queue中。\n- headers:该类型Exchange与Routing Key无关,而与消息中的Headers属性信息相关。Exchange根据消息中的Headers属性键值对和绑定的属性键值对进行匹配,根据匹配情况路由消息。\n**默认取值**:\n不涉及。","type":"string"}},"required":["name","type","auto_delete"],"type":"object"},"ExchangeDetails":{"properties":{"arguments":{"description":"参数列表","type":"object"},"auto_delete":{"description":"是否自动删除","type":"boolean"},"default":{"description":"是否是默认Exchange","type":"boolean"},"durable":{"description":"是否持久化","type":"boolean"},"internal":{"description":"是否是内部Exchange","type":"boolean"},"name":{"description":"Exchange名称","type":"string"},"type":{"description":"**参数解释**:\nExchange类型。\n**取值范围**:\n- direct:该类型Exchange会将消息路由到Routing Key完全匹配的Queue中。\n- fanout:该类型Exchange会将消息路由到所有与其绑定的Queue中。\n- topic:该类型Exchange将Routing Key进行通配符匹配,然后将消息路由到匹配成功的Queue中。\n- headers:该类型Exchange与Routing Key无关,而与消息中的Headers属性信息相关。Exchange根据消息中的Headers属性键值对和绑定的属性键值对进行匹配,根据匹配情况路由消息。","type":"string"},"vhost":{"description":"所属Vhost","type":"string"}},"type":"object"}},"description":null,"group_id":"01d11699e8074781a7ab0fb1c8d994e7","host":"dms.cn-north-4.myhuaweicloud.com","id":"21017268201a49b685be97ee10406cb4","info_version":"v2","method":"put","name":"CreateExchange","parameters":{},"paths":{"/v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts/{vhost}/exchanges":{"put":{"description":"创建Exchange。","operationId":"CreateExchange","parameters":[{"description":"项目ID,获取方式请参见[获取项目ID](rabbitmq-api-190611012.xml)。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"实例ID","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"vhost名称,名称中包含/时,需要将/替换为__F_SLASH__,否则会调用失败。例如:Vhost名称为/test,入参值为__F_SLASH__test。","in":"path","name":"vhost","required":true,"type":"string"},{"description":"创建Exchange","in":"body","name":"CreateExchangeRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateExchangeBody"}}],"responses":{"200":{"description":"创建Exchange成功。","examples":{"application/json":{"arguments":{},"auto_delete":false,"durable":true,"internal":false,"name":"exchange_name_demo","type":"direct","vhost":"default"}},"schema":{"$ref":"#/definitions/ExchangeDetails"}}},"summary":"创建Exchange","tags":["Exchange管理"],"x-api-type":"open-api","x-hybridcloud":false,"x-is-registered":"Y","x-open-region-cloud":"hws,hws_hk,sbc,cmcc,hws_eu,tm,hk_tm,ax,hk_sbc,dt","x-order":1,"x-produc-type":"rabbitmq","x-request-examples-description-1":"创建Exchange","x-request-examples-text-1":{"auto_delete":false,"durable":true,"internal":false,"name":"exchange_name_demo","type":"direct"},"x-request-examples-url-1":"POST /v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts/{vhost}/exchanges","x-support-sdk":"Y"}}},"product_short":"RabbitMQ","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建Exchange","tags":"Exchange管理","uri":null,"version":"2.0"}