如何使用租户管理服务? Tenant Management Service
Tenancy Management Service Provides REST APIs for creating a tenant and provisioning the services required for that tenant. For a tenant, you can either create new instances of the required services or bind the tenant to existing service instances.
To create new instances of the services, you must first obtain the required trusted issuer IDs. For more information on creating trusted issuers, see Creating a UAA Service Instance.
Use the following REST API to create a tenant.
HTTP POST
/tenant
For more information about this API, see the API Documentation.
For example, to create and bind to new instances of the ACS and Asset service, specify the following parameters in the REST API:
...
"services": [
{
"parameters": {},
"seq": 0,
"serviceName": "predix-acs",
"servicePlan": "free",
"trustedIssuerIds": [
"https://13fa0384-9e2a-48e2-9d06-2c95a1f4f5ea.predix-uaa.run.aws-usw02-pr.ice.predix.io/oauth/token"
]
}
{
"parameters": {},
"seq": 1,
"serviceName": "predix-asset",
"servicePlan": "free",
"trustedIssuerIds": [
"https://13fa0384-9e2a-48e2-9d06-2c95a1f4f5ea.predix-uaa.run.aws-usw02-pr.ice.predix.io/oauth/token"
]
}
]
...
To bind to existing instances of ACS and Asset service, specify the following parameters in the REST API:
...
"serviceInstances": [
{
"serviceInstanceName": "my-acs-instance",
"serviceName": "predix-acs"
}
{
"serviceInstanceName": "my-asset-instance",
"serviceName": "predix-asset"
}
]
...
Retrieving Service Instance Details
When you use the Tenant Management service to create and bind to service instances, you can use the REST APIs to retrieve the service instance information for each tenant service.
For more information about this API, see the API Documentation.
1. Use the following REST API to retrieve the details of all service instances for a tenant:
HTTP GET
/v1/tenant/{tenantName}Use the following REST API to retrieve details of a specific service instance for a specific tenant:
HTTP GET
/v1/tenant/{tenantName}/service/{serviceName}NOTE:
If you require the credentials of a specific service instance, use the following REST API:
HTTP GET
/v1/tenant/{tenantName}/service/{serviceName}/credentialsref url:
https://docs.predix.io/en-US/content/service/security/tenant_management/using-tenant-management-service
相关推荐
vCloud Automation Center (vCAC) 6.1部署和使用文档
首先,配置租户(Tenant)的设置,包括为不同部门或团队设置资源预留。
从 SAP BTP 到 Cloud Integration Tenant,租户启用、配置与 JMS 能力激活的完整路径
Cloud Integration 租户启用流程的核心是从商业合同到运行环境的资源映射过程。摘要如下: 租户启用涉及三层架构:Global Account(合同层)、Subaccount(资源边界层)、Cloud Integration Tenant(运行时层)。服务启用与租户创建是分离动作,前者开通能力,后者准备运行环境。 消费型许可需特别注意账号设计规则:新租户必须创建新Account,不能直接扩展现有Account,这对企业多环境治理和成本分摊有长期影响。 操作链路由服务市场入口(Process In
基于SaaS模式的进销存实战架构分析
**每个租户使用一个独立的数据库实例和应用服务器实例**:这种方式适用于初期或小型项目,每个客户都有独立的数据库和服务实例,可以进行高度定制化。2.
Microsoft.Press.Developing.Applications.for.the.Cloud.on.the.Microsoft.Windows.Azure.Platform
- **服务等级协议(Service Level Agreements)**:解释了如何制定和维护 SLA 来确保服务质量和可用性。
Python库 | python-keystoneclient-0.4.1.tar.gz
- **项目管理(Project Management)**:处理项目(tenant)的创建、修改和删除,项目是OpenStack中的资源隔离单位。


GE Predix工业互联网开发社区
