Query the services assigned to an access user.
/uam/acmUser/userServiceTemplate/{userName}
Path parameters | |
---|---|
userName |
Account name.
String type. Required. No default value. The string cannot exceed 32 characters. |
Error codes | |
---|---|
62401 | The value of parameter "{0}" is invalid. |
62858 | User "{0}" does not have an account. |
HTTP/1.1 200 OK
<list> <appliedService> <serviceTemplateId>3</serviceTemplateId> serviceTemplateName>Disable IP Allocating</serviceTemplateName> <serviceSuffix>no</serviceSuffix> <feeStrategyId>3</feeStrategyId> <feeStrategyName>No Accounting</feeStrategyName> <curCycleStartTime></curCycleStartTime> <curCycleEndTime></curCycleEndTime> </appliedService> ... </list>
appliedService subelements | |
---|---|
serviceTemplateId |
Service template ID.
Long integer type. |
serviceTemplateName |
Service name.
String type. |
serviceSuffix |
Service suffix.
String type. |
feeStrategyId |
ID of the accounting policy.
Long integer type. This element is returned only when the accounting component is installed. |
feeStrategyName |
Accounting policy name.
String type. This element is returned only when the accounting component is installed. |
curCycleStartTime |
Start time of the current billing cycle.
Date type. This element is returned only when the accounting component is installed. |
curCycleEndTime |
End time of the current billing cycle.
Date type. This element is returned only when the accounting component is installed. |
userIp |
Support for allocating IP address to access users.
String type. |
Query services assigned to access user pre01.
GET http://inc_host:8080/imcrs/uam/acmUser/userServiceTemplate/pre01 accept: application/xml ...
HTTP/1.1 200 OK Content-Type: application/xml ... <list> <appliedService> <serviceTemplateId>3</serviceTemplateId> serviceTemplateName>Disable IP Allocating</serviceTemplateName> <serviceSuffix>no</serviceSuffix> <feeStrategyId>3</feeStrategyId> <feeStrategyName>No Accounting</feeStrategyName> <curCycleStartTime></curCycleStartTime> <curCycleEndTime></curCycleEndTime> </appliedService> ... </list>