PUT /api/smart_proxies/982965276 { "smart_proxy": { "http_proxy_id": 326090511, "name": "foobar", "download_policy": "immediate" } } 200 { "created_at": "2022-11-08 19:31:33 UTC", "updated_at": "2022-11-08 19:31:33 UTC", "hosts_count": 0, "name": "foobar", "id": 982965276, "url": "https://somewhere21.net:8443", "remote_execution_pubkey": null, "download_policy": "immediate", "supported_pulp_types": [], "lifecycle_environments": [ { "id": 562075838, "name": "Library", "description": "This is the Library", "library": true, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "library_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": null, "prior_id": null, "organization": "Empty Organization" }, { "id": 292811013, "name": "Dev", "description": "Dev environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "dev_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Library", "prior_id": 562075838, "organization": "Empty Organization" }, { "id": 411008527, "name": "Test_env", "description": "Test environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "test_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Dev", "prior_id": 292811013, "organization": "Empty Organization" }, { "id": 261162085, "name": "Beta", "description": "Beta environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "beta_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Test_env", "prior_id": 411008527, "organization": "Empty Organization" }, { "id": 1028819239, "name": "Staging", "description": "Staging environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "staging_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Library", "prior_id": 562075838, "organization": "Empty Organization" }, { "id": 396772849, "name": "Library", "description": "This is the Library", "library": true, "organization_id": 61304186, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "candlepin_library", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": null, "prior_id": null, "organization": "Organization 2" }, { "id": 797271385, "name": "Candlepin Dev", "description": "Dev environment.", "library": false, "organization_id": 61304186, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "candlepin_dev_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Library", "prior_id": 396772849, "organization": "Organization 2" }, { "id": 779215191, "name": "Library", "description": "This is the Library", "library": true, "organization_id": 447626438, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "organization1_library", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": null, "prior_id": null, "organization": "Organization 1" }, { "id": 413623389, "name": "Dev Path1", "description": "Dev environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "dev_path1_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Library", "prior_id": 562075838, "organization": "Empty Organization" }, { "id": 9167524, "name": "QA Path1", "description": "QA environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "qa_path1_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Dev Path1", "prior_id": 413623389, "organization": "Empty Organization" }, { "id": 507881024, "name": "Staging Path1", "description": "Staging environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "staging_path1_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "QA Path1", "prior_id": 9167524, "organization": "Empty Organization" }, { "id": 28194273, "name": "Dev Path2", "description": "Dev environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "dev_path2_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Library", "prior_id": 562075838, "organization": "Empty Organization" }, { "id": 427995936, "name": "QA Path2", "description": "QA environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "qa_path2_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "Dev Path2", "prior_id": 28194273, "organization": "Empty Organization" }, { "id": 122484616, "name": "Staging Path2", "description": "Staging environment.", "library": false, "organization_id": 114267492, "created_at": "2022-11-08 19:09:32 UTC", "updated_at": "2022-11-08 19:09:32 UTC", "label": "staging_path2_label", "registry_name_pattern": null, "registry_unauthenticated_pull": false, "prior": "QA Path2", "prior_id": 427995936, "organization": "Empty Organization" } ], "features": [ { "capabilities": [], "name": "Pulp", "id": 17596590 }, { "capabilities": [], "name": "Pulpcore", "id": 990889162 }, { "capabilities": [], "name": "DNS", "id": 49142851 }, { "capabilities": [], "name": "TFTP", "id": 303403661 }, { "capabilities": [ "dhcp_filename_hostname", "dhcp_filename_ipv4" ], "name": "DHCP", "id": 219245707 }, { "capabilities": [], "name": "Puppet CA", "id": 783807086 }, { "capabilities": [], "name": "Puppet", "id": 1006510553 }, { "capabilities": [], "name": "BMC", "id": 821748566 }, { "capabilities": [], "name": "Chef Proxy", "id": 848995175 }, { "capabilities": [], "name": "Realm", "id": 982965213 }, { "capabilities": [], "name": "Logs", "id": 814728799 }, { "capabilities": [], "name": "Pulpcore", "id": 990889162 }, { "capabilities": [], "name": "Pulp", "id": 17596590 }, { "capabilities": [], "name": "DNS", "id": 49142851 }, { "capabilities": [], "name": "TFTP", "id": 303403661 }, { "capabilities": [ "dhcp_filename_hostname", "dhcp_filename_ipv4" ], "name": "DHCP", "id": 219245707 }, { "capabilities": [], "name": "Puppet CA", "id": 783807086 }, { "capabilities": [], "name": "Puppet", "id": 1006510553 }, { "capabilities": [], "name": "BMC", "id": 821748566 }, { "capabilities": [], "name": "Chef Proxy", "id": 848995175 }, { "capabilities": [], "name": "Realm", "id": 982965213 }, { "capabilities": [], "name": "Logs", "id": 814728799 } ], "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 114267492, "name": "Empty Organization", "title": "Empty Organization", "description": null }, { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null }, { "id": 61304186, "name": "Organization 2", "title": "Organization 2", "description": null } ] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|
smart_proxy required |
Validations:
|
smart_proxy[name] optional |
Validations:
|
smart_proxy[url] optional |
Validations:
|
smart_proxy[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
smart_proxy[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
smart_proxy[download_policy] optional |
Download Policy of the capsule, must be one of on_demand, immediate, inherit, streamed Validations:
|
smart_proxy[http_proxy_id] optional |
Id of the HTTP proxy to use with alternate content sources Validations:
|