Skip to content

KmsManagementClient - MissingEndpointForNonRegionalServiceClientError exception #95

@adizohar

Description

@adizohar

Hi SDK group

I would like to list the vaults and then the keys per vault.
Issue to initiate KmsManagementClient

kms_keys = oci.key_management.KmsManagementClient(config)
Throw exception - MissingEndpointForNonRegionalServiceClientError('An endpoint must be provided for a non-regional service client')
Altough the documentation mentioned service_endpoint is optional

Adding service_endpoint from the vault:
kms_keys = oci.key_management.KmsManagementClient(config,service_endpoint=vault.management_endpoint)
But the function list_keys does not have option to filter by vault_id therefore, there is some issue here !
keySummary has vault_id which I need to filter inside a loop

Please advise:

  1. Why service_endpoint is required when specify optional in documentation
  2. How do I fetch the key if I have key_id but not vault (need to use KmsManagementClient and get_key but don't have service_endpoint) ?
  3. Why cannot filter vault_id in list keys

Metadata

Metadata

Assignees

No one assigned

    Labels

    Object StorageIssue pertains to the Object Storage service

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions