azure.confidentialledger.certificate package

class azure.confidentialledger.certificate.ConfidentialLedgerCertificateClient(certificate_endpoint: Optional[str] = None, **kwargs: Any)[source]
Parameters

certificate_endpoint (Optional[str], optional) – The Identity Service URL, for example https://identity.confidential-ledger.core.azure.com, defaults to None. If not provided, “https://identity.confidential-ledger.core.azure.com” will be used.

Keyword Arguments

api_version – Api Version. Default value is “2022-05-13”. Note that overriding this

default value may result in unsupported behavior. :paramtype api_version: str

close()None[source]
get_ledger_identity(ledger_id: str, **kwargs: Any)collections.abc.MutableMapping[str, Any]

Gets identity information for a Confidential Ledger instance.

Gets identity information for a Confidential Ledger instance.

Parameters

ledger_id (str) – Id of the Confidential Ledger instance to get information for. Required.

Returns

JSON object

Return type

JSON

Raises

HttpResponseError

Example

# response body for status code(s): 200
response == {
    "ledgerId": "str",  # Optional. Id for the ledger.
    "ledgerTlsCertificate": "str"  # PEM-encoded certificate used for TLS by the
      Confidential Ledger. Required.
}
send_request(request: azure.core.rest._rest_py3.HttpRequest, **kwargs: Any)azure.core.rest._rest_py3.HttpResponse[source]

Runs the network request through the client’s chained policies.

>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = client.send_request(request)
<HttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request

Parameters

request (HttpRequest) – The network request you want to make. Required.

Keyword Arguments

stream (bool) – Whether the response payload will be streamed. Defaults to False.

Returns

The response of your network call. Does not do error handling on your response.

Return type

HttpResponse