Marketplace Site Agent Services
Operations Summary
Core CRUD
List Marketplace Site Agent Services
Retrieve
Other Actions
Register a new processor for the agent service
Register a new processor for the agent service
| http \
POST \
https://api.example.com/api/marketplace-site-agent-services/a1b2c3d4-e5f6-7890-abcd-ef1234567890/register_processor/ \
Authorization:"Token YOUR_API_TOKEN" \
name="my-awesome-marketplace-site-agent-service" \
backend_type="string-value"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.agent_processor_create_request import AgentProcessorCreateRequest # (1)
from waldur_api_client.api.marketplace_site_agent_services import marketplace_site_agent_services_register_processor # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = AgentProcessorCreateRequest(
name="my-awesome-marketplace-site-agent-service",
backend_type="string-value"
)
response = marketplace_site_agent_services_register_processor.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
AgentProcessorCreateRequest
- API Source:
marketplace_site_agent_services_register_processor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | import { marketplaceSiteAgentServicesRegisterProcessor } from 'waldur-js-client';
try {
const response = await marketplaceSiteAgentServicesRegisterProcessor({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body: {
"name": "my-awesome-marketplace-site-agent-service",
"backend_type": "string-value"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
Description |
name |
string |
✓ |
|
backend_type |
string |
✓ |
Type of the backend, for example SLURM. |
backend_version |
string |
|
|
200 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
url |
string (uri) |
|
service |
string (uuid) |
|
service_name |
string |
|
name |
string |
|
last_run |
string (date-time) |
|
backend_type |
string |
Type of the backend, for example SLURM. |
backend_version |
string |
|
created |
string (date-time) |
|
modified |
string (date-time) |
|
201 -
| Field |
Type |
Description |
uuid |
string (uuid) |
|
url |
string (uri) |
|
service |
string (uuid) |
|
service_name |
string |
|
name |
string |
|
last_run |
string (date-time) |
|
backend_type |
string |
Type of the backend, for example SLURM. |
backend_version |
string |
|
created |
string (date-time) |
|
modified |
string (date-time) |
|
Update statistics for the agent service
Update statistics for the agent service