-
Notifications
You must be signed in to change notification settings - Fork 52
Client logic
The Service Fabric CLI acts as a wrapper around the Service Fabric Python SDK, which is auto generated from the Service Fabric REST/Swagger specs.
The Python SDK requires a client to be created before calling any REST APIs. The client generation logic has been modified to support both AAD and client certificate authentication.
The client generation function is specified in src/sfctl/apiclient.py
.
Here, the function create
will create a client using the Service Fabric
Python SDK.
Settings for the client are persisted to disk in a temporary file in the user's home directory. Settings can include choices such as the cluster endpoint and authentication options.
For more information about how these settings are persisted, see the Knack CLI module documentation
The generated client can be used to then call any REST API. The APIs are all functions of the generated client.
- Development
- How-To
- Details
- Service Fabric Developers