Closed a-a-a-mc closed 2 years ago
Key Name is also not present on the doc : https://developer.cohesity.com/apidocs-64.html#/python/models/structures/kms-configuration
@aankri The documentation you're referring to is the older one, you can check the latest one available here
@naveena-maplelabs I don't see the python SDK on your new doc ? By the way, the link on the cohesity doc ( https://docs.cohesity.com/6_6/Web/UserGuide/Content/RestAPI/RestAPIIntro.htm?tocpath=Tools%7C_____4 ) to the dev portal refer to the one linked above (6.4)
@aankri We generate individual SDK versions for different cluster versions, you can the refer the SDK(1.6.0) for 6.6.x release.
@naveena-maplelabs can you please give the link ? There is no link for python 6.6 on this page too https://developer.cohesity.com/versions.html
In any case, "key_name" is not present in the KmsConfiguration class, so this is not only a documentation issue . Please look at KmsConfiguration class :
def __init__(self,
ca_certificate=None,
client_certificate=None,
client_key=None,
kmip_protocol_version=None,
server_ip=None,
server_name=None,
server_port=None,
server_type=None):
For creating the kms_config, use kms_create_request_parameters module. Controller reference
Thanks, but I still need the link for the SDK doc up to date, do you have it ?
I currently dont have one, will share with you by EOD, thanks.
@aankri You can refer to the documentation available here. Page contains both V1 and V2 documentation, You can ignore the V2 API documentation which is a beta release.
Closing the ticket, please feel free to reopen if you have any queries.
Thanks, i'm going to look at this neext week
🐛 Bug Report
Can't create a KMS, I have this error : Response status code: 400, Response message: KMS Key Name is empty. By looking the attribute of a KMS created using GUI with
kms_configuration_controller.get_kms_config()
, i see an attribute named 'key_name'. This attribute is not in KmsConfiguration class, and it look like it is mandatory.To Reproduce
Response status code: 400, Response message: KMS Key Name is empty.
Expected behavior
Can created aws KMS
Actual Behavior
Response status code: 400, Response message: KMS Key Name is empty.