Here we will learn how to Administer (create/enable) different BTP services both from BTP Cockpit and BTP CLI
Types of Services
Typically you will find two categories of services in BTP:
Subscription Services
Instance Services
Before creating any service instance inside your subaccount level, you need to first enable the service Entitlement here.
Business Application Studio:
Here we will create a BAS service instance, which will be used by your developers as IDE.
We will assign corresponding Standard Roles to the Users (Developers) for the BAS service
BTP CLI for Entitlement & Services
Let's explore the different CLI commands to administer your Subaccount-Services.
Here we will work with Alert Notification Service, we will first enable the service and then we will create a service instance of the same service using BTP CLI Commands.
BTP assign accounts/entitlement
Assign an entitlement to a subaccount or directory.
Assign or update the entitlement plan of a service, multitenant application, or environment, to a subaccount or directory. Note that some environments, such as Cloud Foundry, are available by default to all global accounts and their subaccounts, and therefore are not made available as entitlements.
BTP create services/instance
Create a service instance.
Provide all the parameters of one of the two following groups when creating a new instance: Group 1: '--name', '--plan-name', '--offering-name' Group 2: '--name','--plan'.
C:\Users\sapte>btp list accounts/entitlement
Showing entitlements for subaccount 9074229f-99f4-4432-bd49-f2b1b77cfc97:
service name service plan quota
sap-identity-services-onboarding default 1
mdo-one-mds-master standard 1
cias standard 1
content-agent-ui free 1
feature-flags-dashboard dashboard 1
application-logs lite 1
cias oauth2 1
xsuaa application 1
html5-apps-repo app-host 1
service-manager service-operator-access 1
connectivity lite 1
print receiver 1
content-agent application 1
auditlog-management default 1
saas-registry application 1
destination lite 1
html5-apps-repo app-runtime 1
identity application 1
credstore proxy 1
one-mds sap-integration 1
autoscaler standard 1
feature-flags standard 1
auditlog-api default 1
xsuaa space 1
service-manager subaccount-audit 1
xsuaa apiaccess 1
service-manager subaccount-admin 1
service-manager container 1
content-agent standard 1
feature-flags lite 1
OK
C:\Users\sapte>btp list services/offering
To get the latest version of this command, please update your client.
name description data_center id
feature-flags Feature Flags service for controlling feature rollout bd5d9d23-96ce-409b-bb93-7c9225c4e56b
xsuaa Manage application authorizations and trust to identity providers. f3a2f2fa-2617-4850-8b91-17c57015dcfe
destination Provides a secure and reliable access to destination and certificate configurations 54943912-60f3-4671-b4ca-b60ce24eb1c1
auditlog-management Retrieve logs and change retention 4716dd8a-dff6-4063-ae00-776f538ab1cd
html5-apps-repo Enables storage of HTML5 applications and provides runtime environment for HTML5 applications. 3335c91b-8e02-4a2c-9687-9bc86c0856e5
saas-registry Service for application providers to register multitenant applications and services fe44bf37-25f3-453a-8f6a-06974edeb528
service-manager The central registry for service brokers and platforms in SAP Business Technology Platform 401522bd-666a-4748-82ef-8b2e4ca4113c
credstore Secure repository for credentials, cryptographic keys and certificates. cfa21e04-a7ff-451e-9dbe-d48abf94c156
auditlog-api [DEPRECATED] Auditlog API 388c9db1-6eba-42f8-88c5-491e799ef15d
one-mds Service for master data integration 73c2ec0e-ce88-4a9c-b079-8eebc8742671
identity Cloud Identity Services 8e6e99a1-8b37-48cc-92b6-2ff7edfeee33
cias Provides guided workflow to integrate SAP Cloud and On-Premise solutions fda04650-d963-4579-89f3-3046b936eda9
print Manage print queues, connect print clients and monitor print status e3a8638d-6d71-49cc-8a0a-fbfed3cd525e
OK
C:\Users\sapte>btp list services/plan
To get the latest version of this command, please update your client.
name shareable data_center description free id
service_offering_id service_offering_name
application Application plan to be used for business applications true 952cebb5-d773-4f54-9da8-c2c442da45c9 f3a2f2fa-2617-4850-8b91-17c57015dcfe xsuaa
lite Read and manage destination configurations (including related certificates) on account and servic... true df2addb2-70ce-4a66-bfd2-079aafa17b09 54943912-60f3-4671-b4ca-b60ce24eb1c1 destination
lite Feature Flags service development plan (for non-productive usage) true 03d708bd-65c6-422e-83e4-48f8489ef672 bd5d9d23-96ce-409b-bb93-7c9225c4e56b feature-flags
standard Feature Flags service standard plan true 834e7669-4c79-45e4-854e-16d3e2d7fbf1 bd5d9d23-96ce-409b-bb93-7c9225c4e56b feature-flags
default Default plan for Auditlog API true a50128a9-35fc-4624-9953-c79668ef3e5b 4716dd8a-dff6-4063-ae00-776f538ab1cd auditlog-management
app-host Use this service plan to deploy HTML5 applications to the repository. true 1ccea149-d04d-45f6-8025-271b3a3d15a7 3335c91b-8e02-4a2c-9687-9bc86c0856e5 html5-apps-repo
app-runtime Use this service plan to consume HTML5 applications stored in the repository. true fee0c262-5f9b-4ea2-8db5-6604b24f1b65 3335c91b-8e02-4a2c-9687-9bc86c0856e5 html5-apps-repo
application Service plan for SaaS application owners to manage the lifecycle of SaaS applications with SAP Sa... true 3a17581c-e9cc-4fa9-ab9c-c9baf5cc854a fe44bf37-25f3-453a-8f6a-06974edeb528 saas-registry
subaccount-admin Allows management of resources in the subaccount in which the service instance of this plan was c... true 8c308b8a-6ec2-4ce6-b11f-a5f024d7fa8c 401522bd-666a-4748-82ef-8b2e4ca4113c service-manager
subaccount-audit Allows read-only access to the resources in the subaccount in which the service instance was crea... true c1ca03ff-a8a1-445a-b4c3-9d4d71249696 401522bd-666a-4748-82ef-8b2e4ca4113c service-manager
container Allows management of service instances and bindings in a reduced scope. Instances created in a co... true e2ca7af8-4658-4a9e-a555-35f424c259f5 401522bd-666a-4748-82ef-8b2e4ca4113c service-manager
proxy Credential Store service proxy true 1c0e1e42-b36f-470f-bc99-c2728ebd275d cfa21e04-a7ff-451e-9dbe-d48abf94c156 credstore
default [DEPRECATED] Default plan for Auditlog API true a97d8970-7a14-48c4-acf2-9f49789f71b0 388c9db1-6eba-42f8-88c5-491e799ef15d auditlog-api
sap-integration Service plan for SAP-to-SAP integrations true 91caa825-dca6-4c05-819a-096b8ed228a6 73c2ec0e-ce88-4a9c-b079-8eebc8742671 one-mds
application Register an application into your Identity Authentication tenant true ba8d82ab-2010-4809-8a58-20757e9bf644 8e6e99a1-8b37-48cc-92b6-2ff7edfeee33 identity
service-operator-access Provides credentials for SAP BTP service operator to access SAP BTP from a Kubernetes cluster true 1c469e56-f3ed-4321-959c-a890195362a1 401522bd-666a-4748-82ef-8b2e4ca4113c service-manager
oauth2 Plan to access Cloud Integration Automation Service API's true 346ab20f-da11-4f42-9b72-4b03541c3981 fda04650-d963-4579-89f3-3046b936eda9 cias
receiver Establish the connection to print clients true 91209ea8-eeb7-475a-830f-9b631267fb36 e3a8638d-6d71-49cc-8a0a-fbfed3cd525e print
OK
C:\Users\sapte>btp assign accounts/entitlement --to-subaccount 9074229f-99f4-4432-bd49-f2b1b77cfc97 --for-service alert-notification --plan free --enable true
Assigning global account entitlement to subaccount...
global account id: 0674688d-5880-46ff-bf9b-f257d35f8cba
subaccount id: 9074229f-99f4-4432-bd49-f2b1b77cfc97
service/app name: alert-notification
service plan name: free
plan unique identifier:
enable: true
Command runs in the background.
Use 'btp list accounts/entitlement' to verify status.
OK
btp [OPTIONS] create services/instance --subaccount ID [--data-center NAME] --service NAME [--plan ID] [--plan-name NAME] [--offering-name NAME] [--parameters JSON] [--labels JSON]