All URIs are relative to http://localhost/service/rest
| Method | HTTP request | Description |
|---|---|---|
| create_routing_rule | POST /beta/routing-rules | Create a single routing rule |
| delete_routing_rule | DELETE /beta/routing-rules/{name} | Delete a single routing rule |
| get_routing_rule | GET /beta/routing-rules/{name} | Get a single routing rule |
| get_routing_rules | GET /beta/routing-rules | List routing rules |
| update_routing_rule | PUT /beta/routing-rules/{name} | Update a single routing rule |
create_routing_rule(body)
Create a single routing rule
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.RoutingRulesApi(api_client)
body = nexus_api_python_client.RoutingRuleXO() # RoutingRuleXO | A routing rule configuration
try:
# Create a single routing rule
api_instance.create_routing_rule(body)
except ApiException as e:
print("Exception when calling RoutingRulesApi->create_routing_rule: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | RoutingRuleXO | A routing rule configuration |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Routing rule was successfully created | - |
| 400 | A routing rule with the same name already exists or required parameters missing | - |
| 403 | Insufficient permissions to create routing rule | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_routing_rule(name)
Delete a single routing rule
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.RoutingRulesApi(api_client)
name = 'name_example' # str | The name of the routing rule to delete
try:
# Delete a single routing rule
api_instance.delete_routing_rule(name)
except ApiException as e:
print("Exception when calling RoutingRulesApi->delete_routing_rule: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | The name of the routing rule to delete |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Routing rule was successfully deleted | - |
| 403 | Insufficient permissions to delete routing rules | - |
| 404 | Routing rule not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RoutingRuleXO get_routing_rule(name)
Get a single routing rule
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.RoutingRulesApi(api_client)
name = 'name_example' # str | The name of the routing rule to get
try:
# Get a single routing rule
api_response = api_instance.get_routing_rule(name)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoutingRulesApi->get_routing_rule: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | The name of the routing rule to get |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 403 | Insufficient permissions to read routing rules | - |
| 404 | Routing rule not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[RoutingRuleXO] get_routing_rules()
List routing rules
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.RoutingRulesApi(api_client)
try:
# List routing rules
api_response = api_instance.get_routing_rules()
pprint(api_response)
except ApiException as e:
print("Exception when calling RoutingRulesApi->get_routing_rules: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 403 | Insufficient permissions to read routing rules | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_routing_rule(name, body)
Update a single routing rule
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.RoutingRulesApi(api_client)
name = 'name_example' # str | The name of the routing rule to update
body = nexus_api_python_client.RoutingRuleXO() # RoutingRuleXO | A routing rule configuration
try:
# Update a single routing rule
api_instance.update_routing_rule(name, body)
except ApiException as e:
print("Exception when calling RoutingRulesApi->update_routing_rule: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | The name of the routing rule to update | |
| body | RoutingRuleXO | A routing rule configuration |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Routing rule was successfully updated | - |
| 400 | Another routing rule with the same name already exists or required parameters missing | - |
| 403 | Insufficient permissions to edit routing rules | - |
| 404 | Routing rule not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]