Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.11k forks source link

azure.mgmt.servicefabric Returns Blank for Requesting all Services on current API Version #31306

Open tayven-bigelow opened 3 weeks ago

tayven-bigelow commented 3 weeks ago

Describe the bug When requesting Services on the Current API Version, it returns blank. Even when utilizing the "Try it" function in the Documentation for the Endpoint https://learn.microsoft.com/en-us/rest/api/servicefabric/application/services/list?view=rest-servicefabric-application-2023-11-01-preview

To Reproduce Steps to reproduce the behavior:

from azure.identity import DefaultAzureCredential
from azure.mgmt.servicefabric import ServiceFabricManagementClient

sub_id = "AZURE_SUBSCRIPTION"
resource_group_name = "RESOURCE GROUP"
cluster_name = "CLUSTER NAME"
application_name = "APP NAME"
credential = DefaultAzureCredential()
client = ServiceFabricManagementClient(
            credential=credential,
            subscription_id=sub_id)
client.services.list(resource_group_name=resource_group_name,
                                                  cluster_name=cluster_name,
                                                  application_name=application_name)

The above code returns

{
  "value": []
}

Expected behavior A list of Service Fabric services that are within the Service Fabric Application are returned.
Screenshots If applicable, add screenshots to help explain your problem.

Additional context If you revert back to 2016-09-01, the list returns. HOWEVER all of the values are None except for the Id. This appears to be very similar to https://github.com/Azure/azure-sdk-for-net/issues/4510

xiangyan99 commented 2 weeks ago

Thanks for the feedback, we’ll investigate asap.

msyyc commented 2 weeks ago

@ChenxiJiang333 Please help on this issue.

ChenxiJiang333 commented 2 weeks ago

got it

ChenxiJiang333 commented 2 weeks ago

Hi @tayven-bigelow, python SDK is tool to send and receive API calling and it seems this issue is caused by the API failure, so python SDK cannot make any fix on it. I would transfer this issue to https://github.com/Azure/azure-rest-api-specs to seek help from service team.