...
Connection to Cassandra and ES
require the following env variables to be set (reference)
the values for env vars should be the same as cert-service env variables
Add only one IP for es_conn_info
Code Block language text sunbird_cassandra_host sunbird_cassandra_keyspace (sunbird) sunbird_cassandra_port es_conn_info CLOUD_STORAGE_TYPE AZURE_STORAGE_SECRET AZURE_STORAGE_KEY CONTAINER_NAME sunbird_cert_domain_url
...
Code Block |
---|
curl --location --request POST 'https://staging.ntp.net.in/api/certreg/v1/certs/search' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIyZThlNmU5MjA4YjI0MjJmOWFlM2EzNjdiODVmNWQzNiJ9.gvpNN7zEl28ZVaxXWgFmCL6n65UJfXZikUWOKSE8vJ8{{api-key}}' \ --data-raw '{ "request": { "_source": [ "identifier" ], "query": { "bool": { "must": [ { "bool": { "must_not": { "exists": { "field": "data" } } } }, { "bool": { "must_not": { "exists": { "field": "jsonUrl" } } } }, { "range": { "createdAt": { "gte": "2020-08-01", "lte": "2020-10-01" } } } ] } } } }' |
...