Queries service details.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadService |
get |
*Application
|
None | None |
Request syntax
POST /pop/sp/api/mseForOam/getServiceDetail HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| region |
string |
No |
The region ID of the service. |
cn-hangzhou |
| namespace |
string |
No |
The ID of the namespace. |
cn-hangzhou:doc-test |
| origin |
string |
No |
The source of the data. Valid values:
|
agent |
| serviceType |
string |
No |
The type of the service. Valid values:
|
springCloud |
| appId |
string |
No |
The ID of the application. |
efbda488-7b33-432f-a40d-****0047**** |
| source |
string |
No |
The source of the service. Set the value to edas. |
edas |
| serviceId |
string |
No |
The ID of the service. This parameter is deprecated. You can ignore it. |
com.alibabacloud.hipstershop.CartService |
| serviceName |
string |
No |
The name of the service. |
com.alibabacloud.hipstershop.CartService |
| serviceVersion |
string |
No |
The version of the service. |
1.0.0 |
| group |
string |
No |
The group to which the service belongs. |
DUBBO |
| ip |
string |
No |
The IP address of the service provider. Fuzzy searches are supported. |
10.20.x.xx |
| registryType |
string |
No |
The type of the service registry. This parameter is deprecated. You can ignore it. |
nacos |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The content returned. |
||
| Code |
integer |
The HTTP status code returned. |
200 |
| Message |
string |
The message returned for the request. |
success |
| Success |
boolean |
Indicates whether the call was successful. |
true |
| Data |
object |
The data structure. |
|
| EdasAppName |
string |
The name of the Enterprise Distributed Application Service (EDAS) application. |
test123 |
| DubboApplicationName |
string |
The name of the Dubbo application. |
cartservice |
| Version |
string |
The version number. |
1.0.0 |
| RegistryType |
string |
The type of the service registry. |
agent |
| SpringApplicationName |
string |
The name of the Spring application. |
edas.service.consumer |
| ServiceType |
string |
The type of the service. |
springCloud |
| ServiceName |
string |
The name of the service. |
edas.service.consumer |
| Metadata |
string |
The metadata. |
{} |
| Group |
string |
The group. |
dubbo |
| Methods |
array<object> |
The methods. |
|
|
array<object> |
|||
| ParameterDetails |
string |
The parameter details. |
{} |
| NameDetail |
string |
The specific name. |
test |
| ParameterNames |
string |
The parameter names. |
test |
| ParameterDefinitions |
string |
The parameter definitions. |
[{"description":"","name":"arg0","type":"java.lang.String"}] |
| Paths |
string |
The method paths. |
["/consumer-echo/feign/{str}"] |
| ParameterTypes |
string |
The parameter types. |
["java.lang.String"] |
| RequestMethods |
string |
The request methods. |
GET |
| ReturnDetails |
string |
The response details. |
test |
| Name |
string |
The name of the service. |
feign2 |
| MethodController |
string |
The controllers. |
com.aliware.edas.DemoController |
| ReturnType |
string |
The type of the response. |
java.lang.String |
| ReturnDefinition |
object |
The definition of the value returned by the method. |
|
| Type |
string |
The type of the response. |
foo |
| Id |
string |
The ID of the return value. |
1 |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"Success": true,
"Data": {
"EdasAppName": "test123",
"DubboApplicationName": "cartservice",
"Version": "1.0.0",
"RegistryType": "agent",
"SpringApplicationName": "edas.service.consumer",
"ServiceType": "springCloud",
"ServiceName": "edas.service.consumer",
"Metadata": "{}",
"Group": "dubbo",
"Methods": [
{
"ParameterDetails": "{}",
"NameDetail": "test",
"ParameterNames": "test",
"ParameterDefinitions": "[{\"description\":\"\",\"name\":\"arg0\",\"type\":\"java.lang.String\"}]",
"Paths": "[\"/consumer-echo/feign/{str}\"]",
"ParameterTypes": "[\"java.lang.String\"]",
"RequestMethods": "GET",
"ReturnDetails": "test",
"Name": "feign2",
"MethodController": "com.aliware.edas.DemoController",
"ReturnType": "java.lang.String",
"ReturnDefinition": {
"Type": "foo",
"Id": "1"
}
}
]
}
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.