Skip to content

Marketplace Script Dry Run

Operations Summary

Method Endpoint Description
POST /api/marketplace-script-dry-run/{uuid}/async_run/ Async run
POST /api/marketplace-script-dry-run/{uuid}/run/ Run

Async run

1
2
3
4
http \
  POST \
  https://api.example.com/api/marketplace-script-dry-run/a1b2c3d4-e5f6-7890-abcd-ef1234567890/async_run/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.dry_run_request import DryRunRequest # (1)
from waldur_api_client.api.marketplace_script_dry_run import marketplace_script_dry_run_async_run # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = DryRunRequest()
response = marketplace_script_dry_run_async_run.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: DryRunRequest
  2. API Source: marketplace_script_dry_run_async_run
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { marketplaceScriptDryRunAsyncRun } from 'waldur-js-client';

try {
  const response = await marketplaceScriptDryRunAsyncRun({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required
plan string (uri)
type any
attributes any
order_offering string (uri)

202 -

Field Type
uuid string (uuid)

Run

1
2
3
4
http \
  POST \
  https://api.example.com/api/marketplace-script-dry-run/a1b2c3d4-e5f6-7890-abcd-ef1234567890/run/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.dry_run_request import DryRunRequest # (1)
from waldur_api_client.api.marketplace_script_dry_run import marketplace_script_dry_run_run # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = DryRunRequest()
response = marketplace_script_dry_run_run.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: DryRunRequest
  2. API Source: marketplace_script_dry_run_run
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { marketplaceScriptDryRunRun } from 'waldur-js-client';

try {
  const response = await marketplaceScriptDryRunRun({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required
plan string (uri)
type any
attributes any
order_offering string (uri)

200 -

Field Type
output string