CognitiveServicesManagementClient Class
Cognitive Services Management Client.
Constructor
CognitiveServicesManagementClient(credential: TokenCredential, subscription_id: str, base_url: str | None = None, *, cloud_setting: AzureClouds | None = None, **kwargs: Any)
Parameters
| Name | Description |
|---|---|
|
credential
Required
|
Credential used to authenticate requests to the service. Required. |
|
subscription_id
Required
|
The ID of the target subscription. The value must be an UUID. Required. |
|
base_url
|
Service host. Default value is None. Default value: None
|
Keyword-Only Parameters
| Name | Description |
|---|---|
|
cloud_setting
|
The cloud setting for which to get the ARM endpoint. Default value is None. Default value: None
|
|
api_version
|
The API version to use for this operation. Known values are "2026-11-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. |
|
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Variables
| Name | Description |
|---|---|
|
operations
|
Operations operations |
|
accounts
|
AccountsOperations operations |
|
deleted_accounts
|
DeletedAccountsOperations operations |
|
private_endpoint_connections
|
PrivateEndpointConnectionsOperations operations |
|
deployments
|
DeploymentsOperations operations |
|
commitment_plans
|
CommitmentPlansOperations operations |
|
encryption_scopes
|
EncryptionScopesOperations operations |
|
rai_policies
|
RaiPoliciesOperations operations |
|
subscription_rai_policy
|
SubscriptionRaiPolicyOperations operations |
|
rai_blocklist_items
|
RaiBlocklistItemsOperations operations |
|
rai_blocklists
|
RaiBlocklistsOperations operations |
|
rai_topics
|
RaiTopicsOperations operations |
|
rai_tool_labels
|
RaiToolLabelsOperations operations |
|
rai_content_filters
|
RaiContentFiltersOperations operations |
|
network_security_perimeter_configurations
|
NetworkSecurityPerimeterConfigurationsOperations operations |
|
defender_for_ai_settings
|
DefenderForAISettingsOperations operations |
|
projects
|
ProjectsOperations operations |
|
project_connections
|
ProjectConnectionsOperations operations |
|
project_capability_hosts
|
ProjectCapabilityHostsOperations operations |
|
quota_tiers
|
QuotaTiersOperations operations |
|
agent_applications
|
AgentApplicationsOperations operations |
|
managed_compute_capacities
|
ManagedComputeCapacitiesOperations operations |
|
private_link_resources
|
PrivateLinkResourcesOperations operations |
|
test_rai_external_safety_provider
|
TestRaiExternalSafetyProviderOperations operations |
|
rai_external_safety_provider
|
RaiExternalSafetyProviderOperations operations |
|
rai_external_safety_providers
|
RaiExternalSafetyProvidersOperations operations |
|
account_connections
|
AccountConnectionsOperations operations |
|
account_capability_hosts
|
AccountCapabilityHostsOperations operations |
|
outbound_rule
|
OutboundRuleOperations operations |
|
managed_network_settings
|
ManagedNetworkSettingsOperations operations |
|
outbound_rules
|
OutboundRulesOperations operations |
|
managed_network_provisions
|
ManagedNetworkProvisionsOperations operations |
|
agent_deployments
|
AgentDeploymentsOperations operations |
|
resource_skus
|
ResourceSkusOperations operations |
|
usages
|
UsagesOperations operations |
|
commitment_tiers
|
CommitmentTiersOperations operations |
|
models
|
ModelsOperations operations |
|
location_based_model_capacities
|
LocationBasedModelCapacitiesOperations operations |
|
model_capacities
|
ModelCapacitiesOperations operations |
Methods
| close | |
| 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
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, *, stream: bool = False, **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. Default value: False
|
Returns
| Type | Description |
|---|---|
|
The response of your network call. Does not do error handling on your response. |