AssistedInstall
Project description
# assisted-service-client
Assisted installation
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
If the python package is hosted on Github, you can install directly from Github
pip install assisted-service-client
(you may need to run pip
with root permission: sudo pip install assisted-service-client
)
Then import the package:
import assisted_service_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import assisted_service_client
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import assisted_service_client
from assisted_service_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: urlAuth
configuration = assisted_service_client.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# Configure API key authorization: userAuth
configuration = assisted_service_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = assisted_service_client.EventsApi(assisted_service_client.ApiClient(configuration))
cluster_id = 'cluster_id_example' # str | The cluster to return events for. (optional)
host_id = 'host_id_example' # str | A host in the specified cluster to return events for. (optional)
infra_env_id = 'infra_env_id_example' # str | The infra-env to return events for. (optional)
categories = ['categories_example'] # list[str] | A comma-separated list of event categories. (optional)
try:
api_response = api_instance.v2_list_events(cluster_id=cluster_id, host_id=host_id, infra_env_id=infra_env_id, categories=categories)
pprint(api_response)
except ApiException as e:
print("Exception when calling EventsApi->v2_list_events: %s
" % e)
Documentation for API Endpoints
All URIs are relative to http://api.openshift.com/api/assisted-install
Class | Method | HTTP request | Description |
---|---|---|---|
EventsApi | v2_list_events | GET /v2/events | |
InstallerApi | bind_host | POST /v2/infra-envs/{infra_env_id}/hosts/{host_id}/actions/bind | |
InstallerApi | deregister_infra_env | DELETE /v2/infra-envs/{infra_env_id} | |
InstallerApi | download_minimal_initrd | GET /v2/infra-envs/{infra_env_id}/downloads/minimal-initrd | |
InstallerApi | get_cluster_supported_platforms | GET /v2/clusters/{cluster_id}/supported-platforms | |
InstallerApi | get_infra_env | GET /v2/infra-envs/{infra_env_id} | |
InstallerApi | get_infra_env_download_url | GET /v2/infra-envs/{infra_env_id}/downloads/image-url | |
InstallerApi | get_infra_env_presigned_file_url | GET /v2/infra-envs/{infra_env_id}/downloads/files-presigned | |
InstallerApi | list_cluster_hosts | GET /v2/clusters/{cluster_id}/hosts | |
InstallerApi | list_infra_envs | GET /v2/infra-envs | |
InstallerApi | regenerate_infra_env_signing_key | POST /v2/infra-envs/{infra_env_id}/regenerate-signing-key | |
InstallerApi | register_infra_env | POST /v2/infra-envs | |
InstallerApi | transform_cluster_to_day2 | POST /v2/clusters/{cluster_id}/actions/allow-add-workers | |
InstallerApi | unbind_host | POST /v2/infra-envs/{infra_env_id}/hosts/{host_id}/actions/unbind | |
InstallerApi | update_infra_env | PATCH /v2/infra-envs/{infra_env_id} | |
InstallerApi | v2_cancel_installation | POST /v2/clusters/{cluster_id}/actions/cancel | |
InstallerApi | v2_complete_installation | POST /v2/clusters/{cluster_id}/actions/complete-installation | |
InstallerApi | v2_deregister_cluster | DELETE /v2/clusters/{cluster_id} | |
InstallerApi | v2_deregister_host | DELETE /v2/infra-envs/{infra_env_id}/hosts/{host_id} | |
InstallerApi | v2_download_cluster_credentials | GET /v2/clusters/{cluster_id}/downloads/credentials | |
InstallerApi | v2_download_cluster_files | GET /v2/clusters/{cluster_id}/downloads/files | |
InstallerApi | v2_download_cluster_logs | GET /v2/clusters/{cluster_id}/logs | |
InstallerApi | v2_download_host_ignition | GET /v2/infra-env/{infra_env_id}/hosts/{host_id}/downloads/ignition | |
InstallerApi | v2_download_infra_env_files | GET /v2/infra-envs/{infra_env_id}/downloads/files | |
InstallerApi | v2_get_cluster | GET /v2/clusters/{cluster_id} | |
InstallerApi | v2_get_cluster_default_config | GET /v2/clusters/default-config | |
InstallerApi | v2_get_cluster_install_config | GET /v2/clusters/{cluster_id}/install-config | |
InstallerApi | v2_get_credentials | GET /v2/clusters/{cluster_id}/credentials | |
InstallerApi | v2_get_host | GET /v2/infra-envs/{infra_env_id}/hosts/{host_id} | |
InstallerApi | v2_get_host_ignition | GET /v2/infra-envs/{infra_env_id}/hosts/{host_id}/ignition | |
InstallerApi | v2_get_next_steps | GET /v2/infra-envs/{infra_env_id}/hosts/{host_id}/instructions | |
InstallerApi | v2_get_preflight_requirements | GET /v2/clusters/{cluster_id}/preflight-requirements | |
InstallerApi | v2_get_presigned_for_cluster_credentials | GET /v2/clusters/{cluster_id}/downloads/credentials-presigned | |
InstallerApi | v2_get_presigned_for_cluster_files | GET /v2/clusters/{cluster_id}/downloads/files-presigned | |
InstallerApi | v2_import_cluster | POST /v2/clusters/import | |
InstallerApi | v2_install_cluster | POST /v2/clusters/{cluster_id}/actions/install | |
InstallerApi | v2_install_host | POST /v2/infra-envs/{infra_env_id}/hosts/{host_id}/actions/install | |
InstallerApi | v2_list_clusters | GET /v2/clusters | |
InstallerApi | v2_list_feature_support_levels | GET /v2/feature-support-levels | |
InstallerApi | v2_list_hosts | GET /v2/infra-envs/{infra_env_id}/hosts | |
InstallerApi | v2_list_of_cluster_operators | GET /v2/clusters/{cluster_id}/monitored-operators | |
InstallerApi | v2_post_step_reply | POST /v2/infra-envs/{infra_env_id}/hosts/{host_id}/instructions | |
InstallerApi | v2_register_cluster | POST /v2/clusters | |
InstallerApi | v2_register_host | POST /v2/infra-envs/{infra_env_id}/hosts | |
InstallerApi | v2_report_monitored_operator_status | PUT /v2/clusters/{cluster_id}/monitored-operators | |
InstallerApi | v2_reset_cluster | POST /v2/clusters/{cluster_id}/actions/reset | |
InstallerApi | v2_reset_host | POST /v2/infra-envs/{infra_env_id}/hosts/{host_id}/actions/reset | |
InstallerApi | v2_reset_host_validation | PATCH /v2/infra-envs/{infra_env_id}/hosts/{host_id}/actions/reset-validation/{validation_id} | Reset failed host validation. |
InstallerApi | v2_update_cluster | PATCH /v2/clusters/{cluster_id} | |
InstallerApi | v2_update_cluster_install_config | PATCH /v2/clusters/{cluster_id}/install-config | |
InstallerApi | v2_update_cluster_logs_progress | PUT /v2/clusters/{cluster_id}/logs-progress | |
InstallerApi | v2_update_host | PATCH /v2/infra-envs/{infra_env_id}/hosts/{host_id} | |
InstallerApi | v2_update_host_ignition | PATCH /v2/infra-envs/{infra_env_id}/hosts/{host_id}/ignition | |
InstallerApi | v2_update_host_install_progress | PUT /v2/infra-envs/{infra_env_id}/hosts/{host_id}/progress | |
InstallerApi | v2_update_host_installer_args | PATCH /v2/infra-envs/{infra_env_id}/hosts/{host_id}/installer-args | |
InstallerApi | v2_update_host_logs_progress | PUT /v2/infra-envs/{infra_env_id}/hosts/{host_id}/logs-progress | |
InstallerApi | v2_upload_cluster_ingress_cert | POST /v2/clusters/{cluster_id}/uploads/ingress-cert | |
InstallerApi | v2_upload_logs | POST /v2/clusters/{cluster_id}/logs | |
ManagedDomainsApi | v2_list_managed_domains | GET /v2/domains | |
ManifestsApi | v2_create_cluster_manifest | POST /v2/clusters/{cluster_id}/manifests | |
ManifestsApi | v2_delete_cluster_manifest | DELETE /v2/clusters/{cluster_id}/manifests | |
ManifestsApi | v2_download_cluster_manifest | GET /v2/clusters/{cluster_id}/manifests/files | |
ManifestsApi | v2_list_cluster_manifests | GET /v2/clusters/{cluster_id}/manifests | |
OperatorsApi | v2_list_of_cluster_operators | GET /v2/clusters/{cluster_id}/monitored-operators | |
OperatorsApi | v2_list_operator_properties | GET /v2/supported-operators/{operator_name} | |
OperatorsApi | v2_list_supported_operators | GET /v2/supported-operators | |
OperatorsApi | v2_report_monitored_operator_status | PUT /v2/clusters/{cluster_id}/monitored-operators | |
VersionsApi | v2_list_component_versions | GET /v2/component-versions | |
VersionsApi | v2_list_supported_openshift_versions | GET /v2/openshift-versions |
Documentation For Models
- ApiVipConnectivityRequest
- ApiVipConnectivityResponse
- BindHostParams
- Boot
- Cluster
- ClusterCreateParams
- ClusterDefaultConfig
- ClusterHostRequirements
- ClusterHostRequirementsDetails
- ClusterHostRequirementsList
- ClusterList
- ClusterNetwork
- ClusterProgressInfo
- ClusterValidationId
- CompletionParams
- ConnectivityCheckHost
- ConnectivityCheckNic
- ConnectivityCheckParams
- ConnectivityRemoteHost
- ConnectivityReport
- ContainerImageAvailability
- ContainerImageAvailabilityRequest
- ContainerImageAvailabilityResponse
- ContainerImageAvailabilityResult
- Cpu
- CreateManifestParams
- Credentials
- DhcpAllocationRequest
- DhcpAllocationResponse
- Disk
- DiskConfigParams
- DiskEncryption
- DiskInfo
- DiskInstallationEligibility
- DiskRole
- DiskSpeed
- DiskSpeedCheckRequest
- DiskSpeedCheckResponse
- DomainResolutionRequest
- DomainResolutionRequestDomains
- DomainResolutionResponse
- DomainResolutionResponseResolutions
- DriveType
- Error
- Event
- EventList
- FeatureSupportLevel
- FeatureSupportLevels
- FeaturesupportlevelFeatures
- FreeAddressesList
- FreeAddressesRequest
- FreeNetworkAddresses
- FreeNetworksAddresses
- Gpu
- Host
- HostCreateParams
- HostIgnitionParams
- HostList
- HostNetwork
- HostProgress
- HostProgressInfo
- HostRegistrationResponse
- HostRegistrationResponseNextStepRunnerCommand
- HostRole
- HostRoleUpdateParams
- HostStage
- HostStaticNetworkConfig
- HostTypeHardwareRequirements
- HostTypeHardwareRequirementsWrapper
- HostUpdateParams
- HostValidationId
- IgnitionEndpoint
- ImageCreateParams
- ImageInfo
- ImageType
- ImportClusterParams
- InfraEnv
- InfraEnvCreateParams
- InfraEnvList
- InfraEnvUpdateParams
- InfraError
- IngressCertParams
- InstallCmdRequest
- InstallerArgsParams
- Interface
- Inventory
- IoPerf
- L2Connectivity
- L3Connectivity
- ListManagedDomains
- ListManifests
- ListVersions
- LogsGatherCmdRequest
- LogsProgressParams
- LogsState
- LogsType
- MacInterfaceMap
- MacInterfaceMapInner
- MachineNetwork
- ManagedDomain
- Manifest
- Memory
- MemoryMethod
- MonitoredOperator
- MonitoredOperatorsList
- NextStepCmdRequest
- NodeLabelParams
- NtpSource
- NtpSynchronizationRequest
- NtpSynchronizationResponse
- OpenshiftVersion
- OpenshiftVersions
- OperatorCreateParams
- OperatorHardwareRequirements
- OperatorHostRequirements
- OperatorMonitorReport
- OperatorProperties
- OperatorProperty
- OperatorStatus
- OperatorType
- OsImage
- OsImages
- OvirtPlatform
- Platform
- PlatformType
- PreflightHardwareRequirements
- PresignedUrl
- Proxy
- ReleaseImage
- ReleaseImages
- Route
- ServiceNetwork
- SourceState
- Step
- StepReply
- StepType
- Steps
- StepsReply
- Subnet
- SystemVendor
- Usage
- V2ClusterUpdateParams
- VersionedHostRequirements
- Versions
Documentation For Authorization
agentAuth
- Type: API key
- API key parameter name: X-Secret-Key
- Location: HTTP header
imageAuth
- Type: API key
- API key parameter name: Image-Token
- Location: HTTP header
imageURLAuth
- Type: API key
- API key parameter name: image_token
- Location: URL query string
urlAuth
- Type: API key
- API key parameter name: api_key
- Location: URL query string
userAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for assisted_service_client-2.5.0.post34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e97cf95d8d8b0a1244b3b3cc3f58dbe50520153d21ddc843a5bea00b3cc01f9 |
|
MD5 | e1f6124db36986d5ae4439bc17af8a69 |
|
BLAKE2b-256 | fc0fc88598215e1d8169a725b8f056d43b708cf92b402358dd9a8e715316231b |