Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
yogananda
Product and Topic Expert
Product and Topic Expert
1,161

FvddYkSXoAE_woF.jpg

SAP AI Core is a service in the SAP Business Technology Platform that is designed to handle the execution and operations of your AI assets in a standardized, scalable, and hyperscaler-agnostic way. It provides seamless integration with your SAP solutions. Any AI function can be easily realized using open-source frameworks. SAP AI Core supports full lifecycle management of AI scenarios.

AI Core API Documentation2024-06-01_02-10-01.png

2024-06-01_01-54-08.png

If you need to debug the copied token to understand scopes, permissions ... you can paste the token in https://token.dev to understand better

Resource Groups2024-06-01_01-57-25.png

Scenarios2024-06-01_01-59-51.png

Configurations2025-01-28_15-26-13.png

Deployments2025-01-28_15-30-38.png

Copy the deployment url from the above response and deployment id to make API calls .

Health Check (Heart Beat)2024-06-01_02-01-13.png

Copy the below template to your Visual Studio Code and Install RestClient in your Extensions which will be faster way to play with

 

@serviceurl = https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com/v2
@clientid = 
@clientsecret =  
@auth = https://XXXXXXXXXXX.authentication.eu12.hana.ondemand.com/oauth/token?grant_type=client_credentials


###
#  login
GET {{auth}}/oauth/token?grant_type=client_credentials
Content-Type: application/json
Authorization: Basic {{clientid}}:{{clientsecret}}


@access_token = {{login.response.body.access_token}}


###
GET {{serviceurl}}/admin/resourceGroups
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/admin/services
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/scenarios
Content-Type: application/json
Authorization: Bearer {{access_token}}
AI-Resource-Group: default

###
GET {{serviceurl}}/lm/healthz
Content-Type: application/json
Authorization: Bearer {{access_token}}


###
GET {{serviceurl}}/admin/resourceQuota/resourceGroups
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/admin/resourceQuota/executables
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/admin/resourceQuota/applications
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/admin/resourceQuota/repositories
Content-Type: application/json
Authorization: Bearer {{access_token}}


###
GET {{serviceurl}}/admin/resourceQuota/secrets
Content-Type: application/json
Authorization: Bearer {{access_token}}


###
GET {{serviceurl}}/admin/resourceQuota/dockerRegistrySecrets
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/admin/applications
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/admin/repositories
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/admin/resources/nodes
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/analytics/kpis
Content-Type: application/json
Authorization: Bearer {{access_token}}


###
GET {{serviceurl}}/lm/metrics
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/admin/dockerRegistrySecrets
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/healthz
Content-Type: application/json
Authorization: Bearer {{access_token}}


###
GET {{serviceurl}}/lm/artifacts
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/artifacts/$count
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/executions
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/executions/$count
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/deployments
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/deployments/$count
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/configurations
Content-Type: application/json
Authorization: Bearer {{access_token}}

###
GET {{serviceurl}}/lm/configurations/$count
Content-Type: application/json
Authorization: Bearer {{access_token}}

 

 

 

 

1 Comment