SAP Business Technology Platform Resource Group API
The Resource Group API from SAP Business Technology Platform — 2 operation(s) for resource group.
The Resource Group API from SAP Business Technology Platform — 2 operation(s) for resource group.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sap-btp:sap-btp-resource-group-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Sap Btp Resource Group API
version: 2.42.0
description: 'Operations tagged Resource Group across 2 of this provider''s published API definitions: ai-core.yaml, sap-btp-ai-core-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
security:
- Oauth2: []
tags:
- name: Resource Group
paths:
/admin/resourceGroups:
post:
parameters:
- $ref: '#/components/parameters/BckndtokenHeader'
tags:
- Resource Group
summary: Creates a resource group
description: Create resource group to a given main tenant. The length of resource group id must be between 3 and 253.
operationId: kubesubmit.v4.resourcegroups.create
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BckndResourceGroupsPostRequest'
responses:
'202':
description: A resource group base object
content:
application/json:
schema:
$ref: '#/components/schemas/BckndResourceGroupBase'
'400':
$ref: '#/components/responses/BckndBadRequest'
default:
$ref: '#/components/responses/BckndCommonError'
get:
parameters:
- $ref: '#/components/parameters/BckndtokenHeader'
- $ref: '#/components/parameters/Bckndtop'
- $ref: '#/components/parameters/Bckndskip'
- $ref: '#/components/parameters/Bckndcount'
- name: Prefer
in: header
description: '<p> One can use the HTTP Prefer header to configure the "maxpagesize" of this endpoint. "maxpagesize" is the maximum number of resourcegroups to return for a request to this endpoint. If more resourcegroups exist, the response will include a "Link" HTTP header. This header will include the URL for getting the next batch of resourcegroups.
<p> The "maxpagesize" preference and the "continueToken" parameter together enable splitting a large list of resourcegroups to small chunks. This feature can help to reduce the response time of a single list-resourcegroup request when the client has a large number resourcegroups in the system.
<p> By default, the "maxpagesize" is not set, which means retrieving all resourcegroups in a single request.
<p> Setting a maxpagesize may return fewer than the requested amount of resourcegroups (up to zero) in the event all requested resourcegroups are filtered out. The client should only use the presence of the Link header in the response to determine whether more resourcegroups are available. If "maxpagesize" is specified and the response does not include a Link header, the client may assume that no more resourcegroups are available.
'
required: false
schema:
type: string
- name: continueToken
in: query
schema:
type: string
required: false
description: '<p> A token for getting more resourcegroups from the service. It is encoded in the URL returned via a "Link" HTTP header of a response of this endpoint if the original request specified "maxpagesize" in a "Prefer" HTTP header and the number of available resourcegroups is larger than the number specified by "maxpagesize". Do <b>NOT</b> use the "continueToken" parameter in other scenarios.
<p> The server may reject a continue token that it does not recognize. If the specified continue token is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error. In this case, the client must restart their list request without the continue token.
'
- name: labelSelector
in: query
description: 'filter by labels. Pass in pairs in the form of ''key=value'' and / or ''key!=value'' separated by commas and the result will be filtered to only those scenarios containing and / or not containing all given key/values
'
schema:
type: array
minItems: 1
items:
type: string
pattern: ^[^ =,!]+!?=[^ =,!]+$
example: key1=value1,key2!=value2
style: form
explode: false
required: false
tags:
- Resource Group
summary: Gets all resource groups of a given tenant
description: Retrieve a list of resource groups for a given tenant.
operationId: kubesubmit.v4.resourcegroups.get_all
responses:
'200':
description: A list of resource groups
content:
application/json:
schema:
$ref: '#/components/schemas/BckndResourceGroupList'
'400':
$ref: '#/components/responses/BckndBadRequest'
default:
$ref: '#/components/responses/BckndCommonError'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
/admin/resourceGroups/{resourceGroupId}:
parameters:
- $ref: '#/components/parameters/BckndresourceGroupId'
- $ref: '#/components/parameters/BckndtokenHeader'
get:
tags:
- Resource Group
summary: Get a resource group
description: Get a resource group of a given main tenant.
operationId: kubesubmit.v4.resourcegroups.get
responses:
'200':
description: A resource group object
content:
application/json:
schema:
$ref: '#/components/schemas/BckndResourceGroup'
'400':
$ref: '#/components/responses/BckndBadRequest'
'404':
$ref: '#/components/responses/BckndNotFound'
default:
$ref: '#/components/responses/BckndCommonError'
delete:
tags:
- Resource Group
summary: Delete a resource group
description: Delete a resource group of a given main tenant.
operationId: kubesubmit.v4.resourcegroups.delete
responses:
'202':
description: The deletion of the resource group has been scheduled successfully
content:
application/json:
schema:
$ref: '#/components/schemas/BckndResourceGroupDeletionResponse'
'404':
$ref: '#/components/responses/BckndNotFound'
'400':
$ref: '#/components/responses/BckndBadRequest'
default:
$ref: '#/components/responses/BckndCommonError'
patch:
tags:
- Resource Group
summary: Change some characteristics of the resource group
description: Replace some characteristics of the resource group, for instance labels.
operationId: kubesubmit.v4.resourcegroups.patch
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BckndResourceGroupPatchRequest'
responses:
'202':
description: Resource group changes accepted.
headers:
Location:
description: URL of the scheduled deployment
schema:
$ref: '#/components/schemas/BckndUrl'
'404':
$ref: '#/components/responses/BckndNotFound'
default:
$ref: '#/components/responses/BckndCommonError'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
components:
schemas:
BckndResourceGroupPatchRequest:
type: object
properties:
labels:
$ref: '#/components/schemas/BckndResourceGroupLabels'
BckndResourceGroupsPostRequest:
type: object
properties:
resourceGroupId:
description: resource group id
type: string
pattern: ^[a-zA-Z0-9][a-zA-Z0-9.-]{1,251}[a-zA-Z0-9]$
minLength: 3
maxLength: 253
labels:
$ref: '#/components/schemas/BckndResourceGroupLabels'
BckndErrorResponse:
type: object
properties:
error:
$ref: '#/components/schemas/BckndError'
BckndResourceGroup:
type: object
properties:
resourceGroupId:
description: resource group id
type: string
tenantId:
description: tenant id
type: string
zoneId:
description: zone id
type: string
createdAt:
description: Timestamp of resource group creation
type: string
format: date-time
labels:
$ref: '#/components/schemas/BckndResourceGroupLabels'
status:
description: aggregated status of the onboarding process
type: string
enum:
- PROVISIONED
- ERROR
- PROVISIONING
statusMessage:
description: status message
type: string
servicePlan:
description: service plan
type: string
required:
- status
- createdAt
- resourceGroupId
BckndResourceGroupBase:
type: object
properties:
resourceGroupId:
description: resource group id
type: string
tenantId:
description: tenant id
type: string
zoneId:
description: zone id
type: string
BckndId:
type: string
pattern: ^[\w.-]{4,64}$
example: aa97b177-9383-4934-8543-0f91a7a0283a
description: Generic ID
BckndResourceGroupDeletionResponse:
type: object
properties:
id:
$ref: '#/components/schemas/BckndId'
message:
$ref: '#/components/schemas/BckndResourceGroupDeletionResponseMessage'
required:
- id
- message
BckndResourceGroupLabels:
type: array
description: Arbitrary labels as meta information
items:
$ref: '#/components/schemas/BckndResourceGroupLabel'
BckndUrl:
type: string
format: url
BckndError:
type: object
required:
- code
- message
properties:
code:
type: string
description: Descriptive error code (not http status code)
message:
type: string
description: Plaintext error description
example: something went wrong
requestId:
type: string
description: ID of the individual request
target:
type: string
description: Invoked URL
details:
description: Optional details of the error message
type: object
BckndResourceGroupList:
type: object
properties:
count:
type: integer
description: Number of the resource instances in the list
resources:
type: array
items:
$ref: '#/components/schemas/BckndResourceGroup'
required:
- count
- resources
BckndResourceGroupLabel:
type: object
required:
- key
- value
properties:
key:
type: string
pattern: ^ext.ai.sap.com/(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]){1,48}$
maxLength: 63
example: ext.ai.sap.com/my-label
value:
type: string
maxLength: 5000
BckndResourceGroupDeletionResponseMessage:
type: string
description: Message
example: Resource Group deletion scheduled
parameters:
BckndresourceGroupId:
name: resourceGroupId
description: Resource group identifier
in: path
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9][a-zA-Z0-9.-]{1,251}[a-zA-Z0-9]$
minLength: 3
maxLength: 253
example: my-test-rg
BckndtokenHeader:
name: Authorization
in: header
description: Authorization bearer token containing a JWT token.
required: false
schema:
type: string
Bckndcount:
name: $count
description: When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default.
in: query
required: false
schema:
type: boolean
example: true
Bckndtop:
name: $top
description: Number of results to display
in: query
required: false
schema:
type: integer
minimum: 0
example: 10
Bckndskip:
name: $skip
description: Number of results to be skipped from the ordered list of results
in: query
required: false
schema:
type: integer
minimum: 0
example: 10
responses:
BckndNotFound:
description: The specified resource was not found
content:
application/json:
schema:
$ref: '#/components/schemas/BckndErrorResponse'
BckndCommonError:
description: HTTP status codes 401, 403 or 500. Response body contains further details.
content:
application/json:
schema:
$ref: '#/components/schemas/BckndErrorResponse'
BckndBadRequest:
description: The request was malformed and could thus not be processed.
content:
application/json:
schema:
$ref: '#/components/schemas/BckndErrorResponse'
securitySchemes:
Oauth2:
type: oauth2
description: OAuth client credentials (client ID and secret) are required. These can be requested from SAP BTP cloud cockpit.
flows:
clientCredentials:
tokenUrl: https://{subdomain_identity_zone}.authentication.{host}/oauth/token
scopes: {}
externalDocs:
description: Documentation for SAP AI Core
url: https://help.sap.com/docs/AI_CORE?version=CLOUD
x-refined-from:
- ai-core.yaml
- sap-btp-ai-core-openapi.yml
x-sap-shortText: Create and manage AI scenarios, trainings, deployments, and artifacts in SAP AI Core.