Rancher Catalogs
Operations Summary
| Method |
Endpoint |
Description |
| Core CRUD |
|
|
| GET |
/api/rancher-catalogs/ |
List Rancher Catalogs |
| GET |
/api/rancher-catalogs/{uuid}/ |
Retrieve |
| POST |
/api/rancher-catalogs/ |
Create |
| PUT |
/api/rancher-catalogs/{uuid}/ |
Update |
| PATCH |
/api/rancher-catalogs/{uuid}/ |
Partial Update |
| DELETE |
/api/rancher-catalogs/{uuid}/ |
Delete |
| Other Actions |
|
|
| POST |
/api/rancher-catalogs/{uuid}/refresh/ |
Refresh |
Core CRUD
List Rancher Catalogs
Retrieve
Create
| http \
POST \
https://api.example.com/api/rancher-catalogs/ \
Authorization:"Token YOUR_API_TOKEN" \
name="my-awesome-rancher-catalog" \
catalog_url="https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
branch="string-value" \
scope="string-value"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.rancher_catalog_create_request import RancherCatalogCreateRequest # (1)
from waldur_api_client.api.rancher_catalogs import rancher_catalogs_create # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = RancherCatalogCreateRequest(
name="my-awesome-rancher-catalog",
catalog_url="https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
branch="string-value",
scope="string-value"
)
response = rancher_catalogs_create.sync(
client=client,
body=body_data
)
print(response)
|
- Model Source:
RancherCatalogCreateRequest
- API Source:
rancher_catalogs_create
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | import { rancherCatalogsCreate } from 'waldur-js-client';
try {
const response = await rancherCatalogsCreate({
auth: "Token YOUR_API_TOKEN",
body: {
"name": "my-awesome-rancher-catalog",
"catalog_url": "https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
"branch": "string-value",
"scope": "string-value"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Field |
Type |
Required |
name |
string |
✓ |
description |
string |
|
catalog_url |
string (uri) |
✓ |
branch |
string |
✓ |
scope |
string |
✓ |
username |
string |
|
password |
string |
|
201 -
| Field |
Type |
uuid |
string (uuid) |
url |
string (uri) |
created |
string (date-time) |
modified |
string (date-time) |
name |
string |
description |
string |
catalog_url |
string (uri) |
branch |
string |
commit |
string |
runtime_state |
string |
scope |
string |
scope_type |
any |
username |
string |
password |
string |
Update
| http \
PUT \
https://api.example.com/api/rancher-catalogs/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
name="my-awesome-rancher-catalog" \
catalog_url="https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
branch="string-value" \
scope="string-value"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.rancher_catalog_update_request import RancherCatalogUpdateRequest # (1)
from waldur_api_client.api.rancher_catalogs import rancher_catalogs_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = RancherCatalogUpdateRequest(
name="my-awesome-rancher-catalog",
catalog_url="https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
branch="string-value",
scope="string-value"
)
response = rancher_catalogs_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
RancherCatalogUpdateRequest
- API Source:
rancher_catalogs_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | import { rancherCatalogsUpdate } from 'waldur-js-client';
try {
const response = await rancherCatalogsUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body: {
"name": "my-awesome-rancher-catalog",
"catalog_url": "https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
"branch": "string-value",
"scope": "string-value"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
name |
string |
✓ |
description |
string |
|
catalog_url |
string (uri) |
✓ |
branch |
string |
✓ |
scope |
string |
✓ |
200 -
| Field |
Type |
uuid |
string (uuid) |
url |
string (uri) |
created |
string (date-time) |
modified |
string (date-time) |
name |
string |
description |
string |
catalog_url |
string (uri) |
branch |
string |
commit |
string |
runtime_state |
string |
scope |
string |
scope_type |
any |
Partial Update
Delete
Other Actions
Refresh
| http \
POST \
https://api.example.com/api/rancher-catalogs/a1b2c3d4-e5f6-7890-abcd-ef1234567890/refresh/ \
Authorization:"Token YOUR_API_TOKEN" \
name="my-awesome-rancher-catalog" \
catalog_url="https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
branch="string-value" \
scope="string-value"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.rancher_catalog_request import RancherCatalogRequest # (1)
from waldur_api_client.api.rancher_catalogs import rancher_catalogs_refresh # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = RancherCatalogRequest(
name="my-awesome-rancher-catalog",
catalog_url="https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
branch="string-value",
scope="string-value"
)
response = rancher_catalogs_refresh.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
RancherCatalogRequest
- API Source:
rancher_catalogs_refresh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | import { rancherCatalogsRefresh } from 'waldur-js-client';
try {
const response = await rancherCatalogsRefresh({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body: {
"name": "my-awesome-rancher-catalog",
"catalog_url": "https://api.example.com/api/catalog-url/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
"branch": "string-value",
"scope": "string-value"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
name |
string |
✓ |
description |
string |
|
catalog_url |
string (uri) |
✓ |
branch |
string |
✓ |
scope |
string |
✓ |
200 -
| Field |
Type |
uuid |
string (uuid) |
url |
string (uri) |
created |
string (date-time) |
modified |
string (date-time) |
name |
string |
description |
string |
catalog_url |
string (uri) |
branch |
string |
commit |
string |
runtime_state |
string |
scope |
string |
scope_type |
any |