CognitiveservicesFunctions

Functions

Link copied to clipboard

Returns a Cognitive Services account specified by the parameters. Uses Azure REST API version 2023-05-01. Other available API versions: 2017-04-18, 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getAccount(argument: suspend GetAccountPlainArgsBuilder.() -> Unit): GetAccountResult
suspend fun getAccount(accountName: String, resourceGroupName: String): GetAccountResult
Link copied to clipboard

Gets the specified commitmentPlans associated with the Cognitive Services account. Uses Azure REST API version 2023-05-01. Other available API versions: 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getCommitmentPlan(accountName: String, commitmentPlanName: String, resourceGroupName: String): GetCommitmentPlanResult
Link copied to clipboard

Gets the association of the Cognitive Services commitment plan. Uses Azure REST API version 2023-05-01. Other available API versions: 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getCommitmentPlanAssociation(commitmentPlanAssociationName: String, commitmentPlanName: String, resourceGroupName: String): GetCommitmentPlanAssociationResult
Link copied to clipboard

Gets the specified deployments associated with the Cognitive Services account. Uses Azure REST API version 2023-05-01. Other available API versions: 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getDeployment(accountName: String, deploymentName: String, resourceGroupName: String): GetDeploymentResult
Link copied to clipboard

Gets the specified EncryptionScope associated with the Cognitive Services account. Uses Azure REST API version 2023-10-01-preview. Other available API versions: 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getEncryptionScope(accountName: String, encryptionScopeName: String, resourceGroupName: String): GetEncryptionScopeResult
Link copied to clipboard

Gets the specified private endpoint connection associated with the Cognitive Services account. Uses Azure REST API version 2023-05-01. Other available API versions: 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getPrivateEndpointConnection(accountName: String, privateEndpointConnectionName: String, resourceGroupName: String): GetPrivateEndpointConnectionResult
Link copied to clipboard

Gets the specified custom blocklist associated with the Azure OpenAI account. Uses Azure REST API version 2023-10-01-preview. Other available API versions: 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getRaiBlocklist(accountName: String, raiBlocklistName: String, resourceGroupName: String): GetRaiBlocklistResult
Link copied to clipboard

Gets the specified custom blocklist Item associated with the custom blocklist. Uses Azure REST API version 2023-10-01-preview. Other available API versions: 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getRaiBlocklistItem(accountName: String, raiBlocklistItemName: String, raiBlocklistName: String, resourceGroupName: String): GetRaiBlocklistItemResult
Link copied to clipboard

Gets the specified Content Filters associated with the Azure OpenAI account. Uses Azure REST API version 2023-10-01-preview. Other available API versions: 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getRaiPolicy(accountName: String, raiPolicyName: String, resourceGroupName: String): GetRaiPolicyResult
Link copied to clipboard

Returns a Cognitive Services commitment plan specified by the parameters. Uses Azure REST API version 2023-05-01. Other available API versions: 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun getSharedCommitmentPlan(commitmentPlanName: String, resourceGroupName: String): GetSharedCommitmentPlanResult
Link copied to clipboard

Lists the account keys for the specified Cognitive Services account. Uses Azure REST API version 2023-05-01. Other available API versions: 2017-04-18, 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01, 2025-04-01-preview.

suspend fun listAccountKeys(accountName: String, resourceGroupName: String): ListAccountKeysResult