404 page not found when using API

Hi, I putting in place a way to monitor trunks data. The portion of Oauth is fine, but when I'm trying to start an api instance, I have an error HTTP response body: 404 page not found

I am using the sample code from the SDK Documentation, here's the portion of the code:

# Configure OAuth2 access token for authorization: PureCloud OAuth

PureCloudPlatformClientV2.configuration.host = 'https://login.cac1.pure.cloud'

apiclient = PureCloudPlatformClientV2.api_client.ApiClient().get_client_credentials_token(CLIENT_ID, CLIENT_SECRET)

authApi = PureCloudPlatformClientV2.AuthorizationApi(apiclient)

#PureCloudPlatformClientV2.configuration.access_token = api_token

# or use get_client_credentials_token(...), get_saml2bearer_token(...) or get_code_authorization_token(...)

# create an instance of the API class

api_instance = PureCloudPlatformClientV2.TelephonyProvidersEdgeApi()

edge_id = 'fd621e4b-9347-4aab-b6b9-ceba4c72d9f2' # str | Edge ID

expand = ['id'] # list[str] | Fields to expand in the response, comma-separated (optional)

try:

    # Get edge.

    api_response = api_instance.get_telephony_providers_edge(edge_id)

    pprint(api_response)

except ApiException as e:

    print("Exception when calling TelephonyProvidersEdgeApi->get_telephony_providers_edge: %s\n" % e)

Here's the return message:

Exception when calling TelephonyProvidersEdgeApi->get_telephony_providers_edge: (404)
Reason: Not Found
HTTP response body: 404 page not found

Can someone help me with that or guide me?

Thanks

Hi Jessy,

Are these edges that are residing in your data center or are these AWS Edges running as part of a GCV installation?

Thanks,
John Carnell
Manager, Developer Engagement

It is part of a GCV installation, nothing on-prem.

Hi Jessy,

I need to double check but you might not be able to see the actual trunk configuration for the edge because it is completely managed by Genesys. For GCV-created resources (e.g. the edges, trunks) we have internal permission that restricts what you can see.

I am going to pass this post off to the edge team for more clarification.

Thanks,
John Carnell
Manager, Developer Engagement

The portion of looking at the edges was example, I have the same problem, with trunks metrics, and list all available users.

Hi Jessy,

Ahhh. Are you using divisions at all? If you are, you might want to check that the OAuth client you are using has a role that belongs to the division.

Thanks,
John

Yes I am, even did Master Admin as a test. Also tried get_user on my own ID, still a 404 error code return.

Hi Jessy,

We are restrictive of what you can do with the telephony APIs when you are trying to do any actions against a GCV edge. The thing that is unusual is that you are also having problems retrieving a list of users. I would double-check the permissions associated with each of the APIs that you are trying to retrieve (there are different permissions for many APIs) and ensure that they are assigned to your OAuth client role.

If that does not work, I would open a ticket with our customer Care team.

We do not have the ability to diagnose issues like this via the forum.

Thanks,
John Carnell
Manager, Developer Engagmeent