ConfidentialLedgerCertificateClient Class
default value may result in unsupported behavior. :paramtype api_version: str
Constructor
ConfidentialLedgerCertificateClient(certificate_endpoint: str | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
certificate_endpoint
|
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. Default value: None
|
Keyword-Only Parameters
Name | Description |
---|---|
api_version
|
Api Version. Default value is "2022-05-13". Note that overriding this |
Methods
close | |
get_ledger_identity |
Gets identity information for a Confidential Ledger instance. Gets identity information for a Confidential Ledger instance. |
send_request |
Runs the network request through the client's chained policies.
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request |
close
close() -> None
get_ledger_identity
Gets identity information for a Confidential Ledger instance.
Gets identity information for a Confidential Ledger instance.
get_ledger_identity(ledger_id: str, **kwargs: Any) -> MutableMapping[str, Any]
Parameters
Name | Description |
---|---|
ledger_id
Required
|
Id of the Confidential Ledger instance to get information for. Required. |
Returns
Type | Description |
---|---|
<xref:JSON>
|
JSON object |
Exceptions
Type | Description |
---|---|
Examples
# 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
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
send_request(request: HttpRequest, **kwargs: Any) -> HttpResponse
Parameters
Name | Description |
---|---|
request
Required
|
The network request you want to make. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
stream
|
Whether the response payload will be streamed. Defaults to False. |
Returns
Type | Description |
---|---|
The response of your network call. Does not do error handling on your response. |