Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

refactor(cloud-integrations): remove cloud_integration_id query param (#12300)

Swapnil Nakade1a6a6934663d
diff --git a/docs/api/openapi.yml b/docs/api/openapi.yml
index 148a4f1771..85b2aa57f0 100644
--- a/docs/api/openapi.yml
+++ b/docs/api/openapi.yml
@@ -9934,14 +9934,9 @@ paths:
get:
deprecated: false
description: This endpoint lists the services metadata for the specified cloud
- provider
+ provider, without any account context.
operationId: ListServicesMetadata
parameters:
- - in: query
- name: cloud_integration_id
- required: false
- schema:
- type: string
- in: path
name: cloud_provider
required: true
@@ -9991,14 +9986,10 @@ paths:
/api/v1/cloud_integrations/{cloud_provider}/services/{service_id}:
get:
deprecated: false
- description: This endpoint gets a service for the specified cloud provider
+ description: This endpoint gets a service definition for the specified cloud
+ provider, without any account context.
operationId: GetService
parameters:
- - in: query
- name: cloud_integration_id
- required: false
- schema:
- type: string
- in: path
name: cloud_provider
required: true
diff --git a/frontend/src/api/generated/services/cloudintegration/index.ts b/frontend/src/api/generated/services/cloudintegration/index.ts
index 873cfd2add..7142613123 100644
--- a/frontend/src/api/generated/services/cloudintegration/index.ts
+++ b/frontend/src/api/generated/services/cloudintegration/index.ts
@@ -36,14 +36,12 @@ import type {
GetConnectionCredentials200,
GetConnectionCredentialsPathParameters,
GetService200,
- GetServiceParams,
GetServicePathParameters,
ListAccountServicesMetadata200,
ListAccountServicesMetadataPathParameters,
ListAccounts200,
ListAccountsPathParameters,
ListServicesMetadata200,
- ListServicesMetadataParams,
ListServicesMetadataPathParameters,
RenderErrorResponseDTO,
UpdateAccountPathParameters,
@@ -1162,30 +1160,24 @@ export const invalidateGetConnectionCredentials = async (
};
/**
- * This endpoint lists the services metadata for the specified cloud provider
+ * This endpoint lists the services metadata for the specified cloud provider, without any account context.
* @summary List services metadata
*/
export const listServicesMetadata = (
{ cloudProvider }: ListServicesMetadataPathParameters,
- params?: ListServicesMetadataParams,
signal?: AbortSignal,
) => {
return GeneratedAPIInstance<ListServicesMetadata200>({
url: `/api/v1/cloud_integrations/${cloudProvider}/services`,
method: 'GET',
- params,
signal,
});
};
-export const getListServicesMetadataQueryKey = (
- { cloudProvider }: ListServicesMetadataPathParameters,
- params?: ListServicesMetadataParams,
-) => {
- return [
- `/api/v1/cloud_integrations/${cloudProvider}/services`,
- ...(params ? [params] : []),
- ] as const;
+export const getListServicesMetadataQueryKey = ({
+ cloudProvider,
+}: ListServicesMetadataPathParameters) => {
+ return [`/api/v1/cloud_integrations/${cloudProvider}/services`] as const;
};
export const getListServicesMetadataQueryOptions = <
@@ -1193,7 +1185,6 @@ export const getListServicesMetadataQueryOptions = <
TError = ErrorType<RenderErrorResponseDTO>,
>(
{ cloudProvider }: ListServicesMetadataPathParameters,
- params?: ListServicesMetadataParams,
options?: {
query?: UseQueryOptions<
Awaited<ReturnType<typeof listServicesMetadata>>,
@@ -1205,12 +1196,11 @@ export const getListServicesMetadataQueryOptions = <
const { query: queryOptions } = options ?? {};
const queryKey =
- queryOptions?.queryKey ??
- getListServicesMetadataQueryKey({ cloudProvider }, params);
+ queryOptions?.queryKey ?? getListServicesMetadataQueryKey({ cloudProvider });
const queryFn: QueryFunction<
Awaited<ReturnType<typeof listServicesMetadata>>
- > = ({ signal }) => listServicesMetadata({ cloudProvider }, params, signal);
+ > = ({ signal }) => listServicesMetadata({ cloudProvider }, signal);
return {
queryKey,
@@ -1238,7 +1228,6 @@ export function useListServicesMetadata<
TError = ErrorType<RenderErrorResponseDTO>,
>(
{ cloudProvider }: ListServicesMetadataPathParameters,
- params?: ListServicesMetadataParams,
options?: {
query?: UseQueryOptions<
Awaited<ReturnType<typeof listServicesMetadata>>,
@@ -1249,7 +1238,6 @@ export function useListServicesMetadata<
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
const queryOptions = getListServicesMetadataQueryOptions(
{ cloudProvider },
- params,
options,
);
@@ -1266,11 +1254,10 @@ export function useListServicesMetadata<
export const invalidateListServicesMetadata = async (
queryClient: QueryClient,
{ cloudProvider }: ListServicesMetadataPathParameters,
- params?: ListServicesMetadataParams,
options?: InvalidateOptions,
): Promise<QueryClient> => {
await queryClient.invalidateQueries(
- { queryKey: getListServicesMetadataQueryKey({ cloudProvider }, params) },
+ { queryKey: getListServicesMetadataQueryKey({ cloudProvider }) },
options,
);
@@ -1278,29 +1265,26 @@ export const invalidateListServicesMetadata = async (
};
/**
- * This endpoint gets a service for the specified cloud provider
+ * This endpoint gets a service definition for the specified cloud provider, without any account context.
* @summary Get service
*/
export const getService = (
{ cloudProvider, serviceId }: GetServicePathParameters,
- params?: GetServiceParams,
signal?: AbortSignal,
) => {
return GeneratedAPIInstance<GetService200>({
url: `/api/v1/cloud_integrations/${cloudProvider}/services/${serviceId}`,
method: 'GET',
- params,
signal,
});
};
-export const getGetServiceQueryKey = (
- { cloudProvider, serviceId }: GetServicePathParameters,
- params?: GetServiceParams,
-) => {
+export const getGetServiceQueryKey = ({
+ cloudProvider,
+ serviceId,
+}: GetServicePathParameters) => {
return [
`/api/v1/cloud_integrations/${cloudProvider}/services/${serviceId}`,
- ...(params ? [params] : []),
] as const;
};
@@ -1309,7 +1293,6 @@ export const getGetServiceQueryOptions = <
TError = ErrorType<RenderErrorResponseDTO>,
>(
{ cloudProvider, serviceId }: GetServicePathParameters,
- params?: GetServiceParams,
options?: {
query?: UseQueryOptions<
Awaited<ReturnType<typeof getService>>,
@@ -1321,12 +1304,11 @@ export const getGetServiceQueryOptions = <
const { query: queryOptions } = options ?? {};
const queryKey =
- queryOptions?.queryKey ??
- getGetServiceQueryKey({ cloudProvider, serviceId }, params);
+ queryOptions?.queryKey ?? getGetServiceQueryKey({ cloudProvider, serviceId });
const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({
signal,
- }) => getService({ cloudProvider, serviceId }, params, signal);
+ }) => getService({ cloudProvider, serviceId }, signal);
return {
queryKey,
@@ -1352,7 +1334,6 @@ export function useGetService<
TError = ErrorType<RenderErrorResponseDTO>,
>(
{ cloudProvider, serviceId }: GetServicePathParameters,
- params?: GetServiceParams,
options?: {
query?: UseQueryOptions<
Awaited<ReturnType<typeof getService>>,
@@ -1363,7 +1344,6 @@ export function useGetService<
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
const queryOptions = getGetServiceQueryOptions(
{ cloudProvider, serviceId },
- params,
options,
);
@@ -1380,11 +1360,10 @@ export function useGetService<
export const invalidateGetService = async (
queryClient: QueryClient,
{ cloudProvider, serviceId }: GetServicePathParameters,
- params?: GetServiceParams,
options?: InvalidateOptions,
): Promise<QueryClient> => {
await queryClient.invalidateQueries(
- { queryKey: getGetServiceQueryKey({ cloudProvider, serviceId }, params) },
+ { queryKey: getGetServiceQueryKey({ cloudProvider, serviceId }) },
options,
);
diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.ts
index f19442c159..929cb6d7a1 100644
--- a/frontend/src/api/generated/services/sigNoz.schemas.ts
+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts
@@ -10204,14 +10204,6 @@ export type GetConnectionCredentials200 = {
export type ListServicesMetadataPathParameters = {
cloudProvider: string;
};
-export type ListServicesMetadataParams = {
- /**
- * @type string
- * @description undefined
- */
- cloud_integration_id?: string;
-};
-
export type ListServicesMetadata200 = {
data: CloudintegrationtypesGettableServicesMetadataDTO;
/**
@@ -10224,14 +10216,6 @@ export type GetServicePathParameters = {
cloudProvider: string;
serviceId: string;
};
-export type GetServiceParams = {
- /**
- * @type string
- * @description undefined
- */
- cloud_integration_id?: string;
-};
-
export type GetService200 = {
data: CloudintegrationtypesServiceDTO;
/**
diff --git a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServiceDetails/ServiceDetails.tsx b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServiceDetails/ServiceDetails.tsx
index ce03341cb9..1c6b157666 100644
--- a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServiceDetails/ServiceDetails.tsx
+++ b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/ServiceDetails/ServiceDetails.tsx
@@ -147,7 +147,6 @@ function ServiceDetails({
cloudProvider: type,
serviceId: serviceId || '',
},
- undefined,
{
query: {
enabled: !!serviceId && !cloudAccountId,
diff --git a/frontend/src/container/Integrations/CloudIntegration/ServicesList.tsx b/frontend/src/container/Integrations/CloudIntegration/ServicesList.tsx
index 966926e7e5..5f4b9b60a7 100644
--- a/frontend/src/container/Integrations/CloudIntegration/ServicesList.tsx
+++ b/frontend/src/container/Integrations/CloudIntegration/ServicesList.tsx
@@ -39,9 +39,12 @@ function ServicesList({
const {
data: providerServicesMetadata,
isLoading: isProviderServicesLoading,
- } = useListServicesMetadata({ cloudProvider: type }, undefined, {
- query: { enabled: !isAccountsLoading && !hasConnectedAccounts },
- });
+ } = useListServicesMetadata(
+ { cloudProvider: type },
+ {
+ query: { enabled: !isAccountsLoading && !hasConnectedAccounts },
+ },
+ );
const servicesMetadata = hasConnectedAccounts
? accountServicesMetadata
diff --git a/pkg/apiserver/signozapiserver/cloudintegration.go b/pkg/apiserver/signozapiserver/cloudintegration.go
index 09ae925fb0..ac9870683b 100644
--- a/pkg/apiserver/signozapiserver/cloudintegration.go
+++ b/pkg/apiserver/signozapiserver/cloudintegration.go
@@ -136,9 +136,8 @@ func (provider *provider) addCloudIntegrationRoutes(router *mux.Router) error {
ID: "ListServicesMetadata",
Tags: []string{"cloudintegration"},
Summary: "List services metadata",
- Description: "This endpoint lists the services metadata for the specified cloud provider",
+ Description: "This endpoint lists the services metadata for the specified cloud provider, without any account context.",
Request: nil,
- RequestQuery: new(citypes.ListServicesMetadataParams),
RequestContentType: "",
Response: new(citypes.GettableServicesMetadata),
ResponseContentType: "application/json",
@@ -177,9 +176,8 @@ func (provider *provider) addCloudIntegrationRoutes(router *mux.Router) error {
ID: "GetService",
Tags: []string{"cloudintegration"},
Summary: "Get service",
- Description: "This endpoint gets a service for the specified cloud provider",
+ Description: "This endpoint gets a service definition for the specified cloud provider, without any account context.",
Request: nil,
- RequestQuery: new(citypes.GetServiceParams),
RequestContentType: "",
Response: new(citypes.Service),
ResponseContentType: "application/json",
diff --git a/pkg/modules/cloudintegration/implcloudintegration/handler.go b/pkg/modules/cloudintegration/implcloudintegration/handler.go
index 8f75434190..117021d370 100644
--- a/pkg/modules/cloudintegration/implcloudintegration/handler.go
+++ b/pkg/modules/cloudintegration/implcloudintegration/handler.go
@@ -251,23 +251,7 @@ func (handler *handler) ListServicesMetadata(rw http.ResponseWriter, r *http.Req
return
}
- queryParams := new(cloudintegrationtypes.ListServicesMetadataParams)
- if err := binding.Query.BindQuery(r.URL.Query(), queryParams); err != nil {
- render.Error(rw, err)
- return
- }
-
- orgID := valuer.MustNewUUID(claims.OrgID)
- // check if integration account exists and is not removed.
- if !queryParams.CloudIntegrationID.IsZero() {
- _, err := handler.module.GetConnectedAccount(ctx, orgID, queryParams.CloudIntegrationID, provider)
- if err != nil {
- render.Error(rw, err)
- return
- }
- }
-
- services, err := handler.module.ListServicesMetadata(ctx, orgID, provider, queryParams.CloudIntegrationID)
+ services, err := handler.module.ListServicesMetadata(ctx, valuer.MustNewUUID(claims.OrgID), provider, valuer.UUID{})
if err != nil {
render.Error(rw, err)
return
@@ -336,22 +320,7 @@ func (handler *handler) GetService(rw http.ResponseWriter, r *http.Request) {
return
}
- queryParams := new(cloudintegrationtypes.GetServiceParams)
- if err := binding.Query.BindQuery(r.URL.Query(), queryParams); err != nil {
- render.Error(rw, err)
- return
- }
-
- // check if integration account exists and is not removed.
- if !queryParams.CloudIntegrationID.IsZero() {
- _, err := handler.module.GetConnectedAccount(ctx, valuer.MustNewUUID(claims.OrgID), queryParams.CloudIntegrationID, provider)
- if err != nil {
- render.Error(rw, err)
- return
- }
- }
-
- svc, err := handler.module.GetService(ctx, valuer.MustNewUUID(claims.OrgID), serviceID, provider, queryParams.CloudIntegrationID)
+ svc, err := handler.module.GetService(ctx, valuer.MustNewUUID(claims.OrgID), serviceID, provider, valuer.UUID{})
if err != nil {
render.Error(rw, err)
return
diff --git a/pkg/types/cloudintegrationtypes/service.go b/pkg/types/cloudintegrationtypes/service.go
index 5375e7733b..6664ac5e41 100644
--- a/pkg/types/cloudintegrationtypes/service.go
+++ b/pkg/types/cloudintegrationtypes/service.go
@@ -44,10 +44,6 @@ type GettableServicesMetadata struct {
Services []*ServiceMetadata `json:"services" required:"true" nullable:"false"`
}
-type ListServicesMetadataParams struct {
- CloudIntegrationID valuer.UUID `query:"cloud_integration_id" required:"false"`
-}
-
// Service represents a cloud integration service with its definition,
// cloud integration service is non nil only when the service entry exists in DB with ANY config (enabled or disabled).
type Service struct {
@@ -63,10 +59,6 @@ type ServiceAssets struct {
Dashboards []*ServiceDashboard `json:"dashboards" required:"true" nullable:"false"`
}
-type GetServiceParams struct {
- CloudIntegrationID valuer.UUID `query:"cloud_integration_id" required:"false"`
-}
-
type UpdatableService struct {
Config *ServiceConfig `json:"config" required:"true" nullable:"false"`
}
diff --git a/tests/integration/tests/cloudintegrations/05_services.py b/tests/integration/tests/cloudintegrations/05_services.py
index 42729df26a..72f5934908 100644
--- a/tests/integration/tests/cloudintegrations/05_services.py
+++ b/tests/integration/tests/cloudintegrations/05_services.py
@@ -31,7 +31,7 @@ def test_list_services_without_account(
create_user_admin: types.Operation, # pylint: disable=unused-argument
get_token: Callable[[str, str], str],
) -> None:
- """List available services without specifying a cloud_integration_id."""
+ """List the cloud provider's supported services"""
admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)
response = requests.get(
@@ -54,38 +54,6 @@ def test_list_services_without_account(
assert "enabled" in service, "Service should have 'enabled' field"
-def test_list_services_with_account(
- signoz: types.SigNoz,
- create_user_admin: types.Operation, # pylint: disable=unused-argument
- get_token: Callable[[str, str], str],
- create_cloud_integration_account: Callable,
-) -> None:
- """List services filtered to a specific account — all disabled by default."""
- admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)
-
- account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)
- account_id = account["id"]
-
- checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))
- assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"
-
- response = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services?cloud_integration_id={account_id}"),
- headers={"Authorization": f"Bearer {admin_token}"},
- timeout=10,
- )
-
- assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"
-
- data = response.json()["data"]
- assert "services" in data, "Response should contain 'services' field"
- assert len(data["services"]) > 0, "services list should be non-empty"
-
- for svc in data["services"]:
- assert "enabled" in svc, "Each service should have 'enabled' field"
- assert svc["enabled"] is False, f"Service {svc['id']} should be disabled before any config is set"
-
-
EC2_SERVICE_ID = "ec2"
@@ -154,34 +122,6 @@ def test_get_service_details_without_account(
assert data["cloudIntegrationService"] is None, "cloudIntegrationService should be null without account context"
-def test_get_service_details_with_account(
- signoz: types.SigNoz,
- create_user_admin: types.Operation, # pylint: disable=unused-argument
- get_token: Callable[[str, str], str],
- create_cloud_integration_account: Callable,
-) -> None:
- """Get service details with account context — cloudIntegrationService is null before first UpdateService."""
- admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)
-
- account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)
- account_id = account["id"]
-
- checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))
- assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"
-
- response = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),
- headers={"Authorization": f"Bearer {admin_token}"},
- timeout=10,
- )
-
- assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"
-
- data = response.json()["data"]
- assert data["id"] == SERVICE_ID
- assert data["cloudIntegrationService"] is None, "cloudIntegrationService should be null before any service config is set"
-
-
def test_get_account_service(
signoz: types.SigNoz,
create_user_admin: types.Operation, # pylint: disable=unused-argument
@@ -252,7 +192,7 @@ def test_update_service_config(
assert put_response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {put_response.status_code}: {put_response.text}"
get_response = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),
+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"),
headers={"Authorization": f"Bearer {admin_token}"},
timeout=10,
)
@@ -302,7 +242,7 @@ def test_update_service_config_disable(
assert r.status_code == HTTPStatus.NO_CONTENT, f"Disable failed: {r.status_code}: {r.text}"
get_response = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),
+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"),
headers={"Authorization": f"Bearer {admin_token}"},
timeout=10,
)
@@ -355,7 +295,7 @@ def test_list_services_account_removed(
get_token: Callable[[str, str], str],
create_cloud_integration_account: Callable,
) -> None:
- """List services with a cloud_integration_id for a deleted account returns 404."""
+ """List services for a deleted account returns 404."""
admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)
account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)
@@ -372,7 +312,7 @@ def test_list_services_account_removed(
assert delete_response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204 on delete, got {delete_response.status_code}"
response = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services?cloud_integration_id={account_id}"),
+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services"),
headers={"Authorization": f"Bearer {admin_token}"},
timeout=10,
)
@@ -386,7 +326,7 @@ def test_get_service_details_account_removed(
get_token: Callable[[str, str], str],
create_cloud_integration_account: Callable,
) -> None:
- """Get service details with a cloud_integration_id for a deleted account returns 404."""
+ """Get service details for a deleted account returns 404."""
admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)
account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)
@@ -403,7 +343,7 @@ def test_get_service_details_account_removed(
assert delete_response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204 on delete, got {delete_response.status_code}"
response = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),
+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"),
headers={"Authorization": f"Bearer {admin_token}"},
timeout=10,
)
@@ -468,7 +408,7 @@ def test_enable_metrics_provisions_dashboards(
# Assertion 1: GetService returns provisioned dashboard UUIDs
get_svc_response = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),
+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"),
headers={"Authorization": f"Bearer {admin_token}"},
timeout=10,
)
@@ -533,7 +473,7 @@ def test_disable_metrics_deprovisions_dashboards(
# Capture the provisioned dashboard IDs before disabling
get_svc_response = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),
+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"),
headers={"Authorization": f"Bearer {admin_token}"},
timeout=10,
)
@@ -552,7 +492,7 @@ def test_disable_metrics_deprovisions_dashboards(
# Assertion 1: GetService no longer returns UUID dashboard IDs
get_svc_after = requests.get(
- signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),
+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"),
headers={"Authorization": f"Bearer {admin_token}"},
timeout=10,
)