LicenseManagerClient

class oci.license_manager.LicenseManagerClient(config, **kwargs)

Use the License Manager API to manage product licenses and license records. For more information, see [License Manager Overview](/iaas/Content/LicenseManager/Concepts/licensemanageroverview.htm).

Methods

__init__(config, **kwargs) Creates a new service client
bulk_upload_license_records(…) Bulk upload the product licenses and license records for a given compartment.
create_license_record(…) Creates a new license record for the given product license ID.
create_product_license(…) Creates a new product license.
delete_license_record(license_record_id, …) Removes a license record.
delete_product_license(product_license_id, …) Removes a product license.
get_bulk_upload_template(**kwargs) Provides the bulk upload file template.
get_configuration(compartment_id, **kwargs) Retrieves configuration for a compartment.
get_license_metric(compartment_id, **kwargs) Retrieves the license metrics for a given compartment.
get_license_record(license_record_id, **kwargs) Retrieves license record details by the license record ID in a given compartment.
get_product_license(product_license_id, **kwargs) Retrieves product license details by product license ID in a given compartment.
list_license_records(product_license_id, …) Retrieves all license records for a given product license ID.
list_product_license_consumers(…) Retrieves the product license consumers for a particular product license ID.
list_product_licenses(compartment_id, **kwargs) Retrieves all the product licenses from a given compartment.
list_top_utilized_product_licenses(…) Retrieves the top utilized product licenses for a given compartment.
list_top_utilized_resources(compartment_id, …) Retrieves the top utilized resources for a given compartment.
update_configuration(compartment_id, …) Updates the configuration for the compartment.
update_license_record(license_record_id, …) Updates license record entity details.
update_product_license(product_license_id, …) Updates the list of images for a product license.
__init__(config, **kwargs)

Creates a new service client

Parameters:
  • config (dict) – Configuration keys and values as per SDK and Tool Configuration. The from_file() method can be used to load configuration from a file. Alternatively, a dict can be passed. You can validate_config the dict using validate_config()
  • service_endpoint (str) – (optional) The endpoint of the service to call using this client. For example https://iaas.us-ashburn-1.oraclecloud.com. If this keyword argument is not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit need to specify a service endpoint.
  • timeout (float or tuple(float, float)) – (optional) The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
  • signer (AbstractBaseSigner) –

    (optional) The signer to use when signing requests made by the service client. The default is to use a Signer based on the values provided in the config parameter.

    One use case for this parameter is for Instance Principals authentication by passing an instance of InstancePrincipalsSecurityTokenSigner as the value for this keyword argument

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. Retry strategies can also be applied at the operation level by passing a retry_strategy keyword argument as part of calling the operation. Any value provided at the operation level will override whatever is specified at the client level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

  • circuit_breaker_strategy (obj) – (optional) A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). This client uses DEFAULT_CIRCUIT_BREAKER_STRATEGY as default if no circuit breaker strategy is provided. The specifics of circuit breaker strategy are described here.
  • circuit_breaker_callback (function) – (optional) Callback function to receive any exceptions triggerred by the circuit breaker.
  • client_level_realm_specific_endpoint_template_enabled (bool) – (optional) A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
  • allow_control_chars – (optional) allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not allow control characters to be in the response object.
bulk_upload_license_records(bulk_upload_license_records_details, **kwargs)

Bulk upload the product licenses and license records for a given compartment.

Parameters:
  • bulk_upload_license_records_details (oci.license_manager.models.BulkUploadLicenseRecordsDetails) – (required) Details required for the bulk upload of product licenses and license records.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type BulkUploadResponse

Return type:

Response

Example:

Click here to see an example of how to use bulk_upload_license_records API.

create_license_record(create_license_record_details, product_license_id, **kwargs)

Creates a new license record for the given product license ID.

Parameters:
  • create_license_record_details (oci.license_manager.models.CreateLicenseRecordDetails) – (required) Details needed to create a new license record.
  • product_license_id (str) – (required) Unique product license identifier.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • opc_retry_token (str) – (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected).
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type LicenseRecord

Return type:

Response

Example:

Click here to see an example of how to use create_license_record API.

create_product_license(create_product_license_details, **kwargs)

Creates a new product license.

Parameters:
  • create_product_license_details (oci.license_manager.models.CreateProductLicenseDetails) – (required) Details for creating a new product license.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • opc_retry_token (str) – (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected).
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type ProductLicense

Return type:

Response

Example:

Click here to see an example of how to use create_product_license API.

delete_license_record(license_record_id, **kwargs)

Removes a license record.

Parameters:
  • license_record_id (str) – (required) Unique license record identifier.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type None

Return type:

Response

Example:

Click here to see an example of how to use delete_license_record API.

delete_product_license(product_license_id, **kwargs)

Removes a product license.

Parameters:
  • product_license_id (str) – (required) Unique product license identifier.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type None

Return type:

Response

Example:

Click here to see an example of how to use delete_product_license API.

get_bulk_upload_template(**kwargs)

Provides the bulk upload file template.

Parameters:
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type BulkUploadTemplate

Return type:

Response

Example:

Click here to see an example of how to use get_bulk_upload_template API.

get_configuration(compartment_id, **kwargs)

Retrieves configuration for a compartment.

Parameters:
  • compartment_id (str) –

    (required) The compartment OCID used for the license record, product license, and configuration.

  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type Configuration

Return type:

Response

Example:

Click here to see an example of how to use get_configuration API.

get_license_metric(compartment_id, **kwargs)

Retrieves the license metrics for a given compartment.

Parameters:
  • compartment_id (str) –

    (required) The compartment OCID used for the license record, product license, and configuration.

  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • is_compartment_id_in_subtree (bool) – (optional) Indicates if the given compartment is the root compartment.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type LicenseMetric

Return type:

Response

Example:

Click here to see an example of how to use get_license_metric API.

get_license_record(license_record_id, **kwargs)

Retrieves license record details by the license record ID in a given compartment.

Parameters:
  • license_record_id (str) – (required) Unique license record identifier.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type LicenseRecord

Return type:

Response

Example:

Click here to see an example of how to use get_license_record API.

get_product_license(product_license_id, **kwargs)

Retrieves product license details by product license ID in a given compartment.

Parameters:
  • product_license_id (str) – (required) Unique product license identifier.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type ProductLicense

Return type:

Response

Example:

Click here to see an example of how to use get_product_license API.

list_license_records(product_license_id, **kwargs)

Retrieves all license records for a given product license ID.

Parameters:
  • product_license_id (str) – (required) Unique product license identifier.
  • limit (int) – (optional) The maximum number of items to return.
  • page (str) – (optional) A token representing the position at which to start retrieving results. This must come from the opc-next-page header field of a previous response.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • sort_order (str) –

    (optional) The sort order to use, whether ASC or DESC.

    Allowed values are: “ASC”, “DESC”

  • sort_by (str) –

    (optional) Specifies the attribute with which to sort the rules.

    Default: expirationDate

    • expirationDate: Sorts by expiration date of the license record.

    Allowed values are: “expirationDate”

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type LicenseRecordCollection

Return type:

Response

Example:

Click here to see an example of how to use list_license_records API.

list_product_license_consumers(product_license_id, compartment_id, **kwargs)

Retrieves the product license consumers for a particular product license ID.

Parameters:
  • product_license_id (str) – (required) Unique product license identifier.
  • compartment_id (str) –

    (required) The compartment OCID used for the license record, product license, and configuration.

  • limit (int) – (optional) The maximum number of items to return.
  • page (str) – (optional) A token representing the position at which to start retrieving results. This must come from the opc-next-page header field of a previous response.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • is_compartment_id_in_subtree (bool) – (optional) Indicates if the given compartment is the root compartment.
  • sort_order (str) –

    (optional) The sort order to use, whether ASC or DESC.

    Allowed values are: “ASC”, “DESC”

  • sort_by (str) –

    (optional) Specifies the attribute with which to sort the rules.

    Default: licenseUnitsRequired

    • licenseUnitsRequired: Sorts by licenseUnitsRequired of the Resource.

    Allowed values are: “licenseUnitsRequired”

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type ProductLicenseConsumerCollection

Return type:

Response

Example:

Click here to see an example of how to use list_product_license_consumers API.

list_product_licenses(compartment_id, **kwargs)

Retrieves all the product licenses from a given compartment.

Parameters:
  • compartment_id (str) –

    (required) The compartment OCID used for the license record, product license, and configuration.

  • limit (int) – (optional) The maximum number of items to return.
  • page (str) – (optional) A token representing the position at which to start retrieving results. This must come from the opc-next-page header field of a previous response.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • is_compartment_id_in_subtree (bool) – (optional) Indicates if the given compartment is the root compartment.
  • sort_order (str) –

    (optional) The sort order to use, whether ASC or DESC.

    Allowed values are: “ASC”, “DESC”

  • sort_by (str) –

    (optional) Specifies the attribute with which to sort the rules.

    Default: totalLicenseUnitsConsumed

    • totalLicenseUnitsConsumed: Sorts by totalLicenseUnitsConsumed of ProductLicense.

    Allowed values are: “totalLicenseUnitsConsumed”

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type ProductLicenseCollection

Return type:

Response

Example:

Click here to see an example of how to use list_product_licenses API.

list_top_utilized_product_licenses(compartment_id, **kwargs)

Retrieves the top utilized product licenses for a given compartment.

Parameters:
  • compartment_id (str) –

    (required) The compartment OCID used for the license record, product license, and configuration.

  • limit (int) – (optional) The maximum number of items to return.
  • page (str) – (optional) A token representing the position at which to start retrieving results. This must come from the opc-next-page header field of a previous response.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • is_compartment_id_in_subtree (bool) – (optional) Indicates if the given compartment is the root compartment.
  • sort_order (str) –

    (optional) The sort order to use, whether ASC or DESC.

    Allowed values are: “ASC”, “DESC”

  • sort_by (str) –

    (optional) Specifies the attribute with which to sort the rules.

    Default: totalLicenseUnitsConsumed

    • totalLicenseUnitsConsumed: Sorts by totalLicenseUnitsConsumed of ProductLicense.

    Allowed values are: “totalLicenseUnitsConsumed”

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type TopUtilizedProductLicenseCollection

Return type:

Response

Example:

Click here to see an example of how to use list_top_utilized_product_licenses API.

list_top_utilized_resources(compartment_id, **kwargs)

Retrieves the top utilized resources for a given compartment.

Parameters:
  • compartment_id (str) –

    (required) The compartment OCID used for the license record, product license, and configuration.

  • limit (int) – (optional) The maximum number of items to return.
  • page (str) – (optional) A token representing the position at which to start retrieving results. This must come from the opc-next-page header field of a previous response.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • is_compartment_id_in_subtree (bool) – (optional) Indicates if the given compartment is the root compartment.
  • resource_unit_type (str) –

    (optional) A filter to return only resources whose unit matches the given resource unit.

    Allowed values are: “OCPU”, “ECPU”

  • sort_order (str) –

    (optional) The sort order to use, whether ASC or DESC.

    Allowed values are: “ASC”, “DESC”

  • sort_by (str) –

    (optional) Specifies the attribute with which to sort the rules.

    Default: totalUnits

    • totalUnits: Sorts by totalUnits consumed by resource.

    Allowed values are: “totalUnits”

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type TopUtilizedResourceCollection

Return type:

Response

Example:

Click here to see an example of how to use list_top_utilized_resources API.

update_configuration(compartment_id, update_configuration_details, **kwargs)

Updates the configuration for the compartment.

Parameters:
  • compartment_id (str) –

    (required) The compartment OCID used for the license record, product license, and configuration.

  • update_configuration_details (oci.license_manager.models.UpdateConfigurationDetails) – (required) Configuration details that need to be updated.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type Configuration

Return type:

Response

Example:

Click here to see an example of how to use update_configuration API.

update_license_record(license_record_id, update_license_record_details, **kwargs)

Updates license record entity details.

Parameters:
  • license_record_id (str) – (required) Unique license record identifier.
  • update_license_record_details (oci.license_manager.models.UpdateLicenseRecordDetails) – (required) Details to update a license record entity.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type LicenseRecord

Return type:

Response

Example:

Click here to see an example of how to use update_license_record API.

update_product_license(product_license_id, update_product_license_details, **kwargs)

Updates the list of images for a product license.

Parameters:
  • product_license_id (str) – (required) Unique product license identifier.
  • update_product_license_details (oci.license_manager.models.UpdateProductLicenseDetails) – (required) The list of images that needs to be updated.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. This operation uses DEFAULT_RETRY_STRATEGY as default if no retry strategy is provided. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

  • allow_control_chars (bool) – (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings
Returns:

A Response object with data of type ProductLicense

Return type:

Response

Example:

Click here to see an example of how to use update_product_license API.