Skip to main content

Retrieve product edition IDs

Important

The GraphQL API for Product Associations is currently in Preview status for customers on the AWS-US cluster. For more information, see GraphQL API policy.

Use the products query to retrieve a list of all Products on the marketplace. You can specify that the information returned by this query is to include the product IDs, and the IDs for all editions within each product.

Since this list can be large, you can use pagination arguments to specify how the results are to be returned (see Pagination).

If you already know the product ID for a specific product, you can also use an individual product query to retrieve ID values for all of its editions.

Query

query { 
products(first: $first, after: $after, last: $last, before: $before, filter: $filter, tenant: $tenant, version: $version) {
nodes {
editions {
product
code
id
}
name
id
}
}
}

Variables

{
"tenant": $tenant,
"version": $version
}

Was this page helpful?