Thinkcode.RabbitMQ.OpenAPI.Api.BindingsApi

May 13, 2019 ยท View on GitHub

All URIs are relative to http://mb1.bus.adaptive.me/rabbitmq/api

MethodHTTP requestDescription
CreateBindingsForQueueExchangePOST /bindings/{vhost}/e/{exchange}/q/{queue}Create Bindings for Queue
DeleteBindingForQueueExchangeDELETE /bindings/{vhost}/e/{exchange}/q/{queue}/{propertyKey}Delete Binding for Queue
GetBindingForQueueExchangeGET /bindings/{vhost}/e/{exchange}/q/{queue}/{propertyKey}Get Binding for Queue
ListBindingsGET /bindingsList Bindings
ListBindingsAsDestinationGET /exchanges/{vhost}/{exchange}/bindings/destinationList Bindings as Destination
ListBindingsAsSourceGET /exchanges/{vhost}/{exchange}/bindings/sourceList Bindings as Source
ListBindingsForQueueGET /queues/{vhost}/{queue}/bindingsList All Bindings for Queue
ListBindingsForQueueExchangeGET /bindings/{vhost}/e/{exchange}/q/{queue}List Bindings for Queue

CreateBindingsForQueueExchange

void CreateBindingsForQueueExchange (string vhost, string exchange, string queue, BindingRequest body = null)

Create Bindings for Queue

Example

using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;

namespace Example
{
    public class CreateBindingsForQueueExchangeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BindingsApi();
            var vhost = vhost_example;  // string | 
            var exchange = exchange_example;  // string | 
            var queue = queue_example;  // string | 
            var body = new BindingRequest(); // BindingRequest |  (optional) 

            try
            {
                // Create Bindings for Queue
                apiInstance.CreateBindingsForQueueExchange(vhost, exchange, queue, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BindingsApi.CreateBindingsForQueueExchange: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
vhoststring
exchangestring
queuestring
bodyBindingRequest[optional]

Return type

void (empty response body)

Authorization

basic_auth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteBindingForQueueExchange

void DeleteBindingForQueueExchange (string vhost, string exchange, string queue, string propertyKey)

Delete Binding for Queue

Example

using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;

namespace Example
{
    public class DeleteBindingForQueueExchangeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BindingsApi();
            var vhost = vhost_example;  // string | 
            var exchange = exchange_example;  // string | 
            var queue = queue_example;  // string | 
            var propertyKey = propertyKey_example;  // string | 

            try
            {
                // Delete Binding for Queue
                apiInstance.DeleteBindingForQueueExchange(vhost, exchange, queue, propertyKey);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BindingsApi.DeleteBindingForQueueExchange: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
vhoststring
exchangestring
queuestring
propertyKeystring

Return type

void (empty response body)

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetBindingForQueueExchange

Binding GetBindingForQueueExchange (string vhost, string exchange, string queue, string propertyKey)

Get Binding for Queue

Example

using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;

namespace Example
{
    public class GetBindingForQueueExchangeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BindingsApi();
            var vhost = vhost_example;  // string | 
            var exchange = exchange_example;  // string | 
            var queue = queue_example;  // string | 
            var propertyKey = propertyKey_example;  // string | 

            try
            {
                // Get Binding for Queue
                Binding result = apiInstance.GetBindingForQueueExchange(vhost, exchange, queue, propertyKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BindingsApi.GetBindingForQueueExchange: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
vhoststring
exchangestring
queuestring
propertyKeystring

Return type

Binding

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListBindings

List ListBindings ()

List Bindings

Example

using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;

namespace Example
{
    public class ListBindingsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BindingsApi();

            try
            {
                // List Bindings
                List<Binding> result = apiInstance.ListBindings();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BindingsApi.ListBindings: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListBindingsAsDestination

List ListBindingsAsDestination (string vhost, string exchange)

List Bindings as Destination

Example

using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;

namespace Example
{
    public class ListBindingsAsDestinationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BindingsApi();
            var vhost = vhost_example;  // string | 
            var exchange = exchange_example;  // string | 

            try
            {
                // List Bindings as Destination
                List<Binding> result = apiInstance.ListBindingsAsDestination(vhost, exchange);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BindingsApi.ListBindingsAsDestination: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
vhoststring
exchangestring

Return type

List

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListBindingsAsSource

List ListBindingsAsSource (string vhost, string exchange)

List Bindings as Source

Example

using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;

namespace Example
{
    public class ListBindingsAsSourceExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BindingsApi();
            var vhost = vhost_example;  // string | 
            var exchange = exchange_example;  // string | 

            try
            {
                // List Bindings as Source
                List<Binding> result = apiInstance.ListBindingsAsSource(vhost, exchange);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BindingsApi.ListBindingsAsSource: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
vhoststring
exchangestring

Return type

List

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListBindingsForQueue

List ListBindingsForQueue (string vhost, string queue)

List All Bindings for Queue

Example

using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;

namespace Example
{
    public class ListBindingsForQueueExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BindingsApi();
            var vhost = vhost_example;  // string | 
            var queue = queue_example;  // string | 

            try
            {
                // List All Bindings for Queue
                List<Binding> result = apiInstance.ListBindingsForQueue(vhost, queue);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BindingsApi.ListBindingsForQueue: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
vhoststring
queuestring

Return type

List

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListBindingsForQueueExchange

List ListBindingsForQueueExchange (string vhost, string exchange, string queue)

List Bindings for Queue

Example

using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;

namespace Example
{
    public class ListBindingsForQueueExchangeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BindingsApi();
            var vhost = vhost_example;  // string | 
            var exchange = exchange_example;  // string | 
            var queue = queue_example;  // string | 

            try
            {
                // List Bindings for Queue
                List<Binding> result = apiInstance.ListBindingsForQueueExchange(vhost, exchange, queue);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BindingsApi.ListBindingsForQueueExchange: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
vhoststring
exchangestring
queuestring

Return type

List

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]