Portal Consumer Access
Connect Consumer Groups to Portals to control access to your marketplaces.
Portal Consumer Access object
Attributes
object
StringType of the object, fixed as consumer access
id
StringThe unique identifier of the consumer access
access
ObjectDetails about the access granted to the consumer
consumer_group
Objectcreated_at
DateThe ISO 8601 timestamp when the consumer access was created
updated_at
DateThe ISO 8601 timestamp when the consumer access was last updated
{"object": "consumer.group","access": {"type": "server_deployment_template","server_deployment_template": {"object": "server.server_deployment.template","server": {"object": "server","status": "active","type": "public","metadata": {},"variants": [{"object": "server.server_variant","status": "active","server": {"object": "server#preview","type": "public"},"current_version": {"object": "server.server_version","oauth": {"status": "disabled"},"source": {"type": "docker","docker": {}},"schema": {},"created_at": "2024-01-15T09:30:00.000Z","server": {"object": "server#preview","type": "public"}},"source": {"type": "docker","docker": {}}}]}}},"consumer_group": {"object": "consumer.group","status": "active"}}
List Portal
Returns a paginated list of portals.
URL Parameters
portal_id
StringThe unique identifier for the portal
Query Parameters
limit
NumberOptionalMaximum number of items to return (1-100)
after
StringOptionalReturn items after this ID
before
StringOptionalReturn items before this ID
cursor
StringOptionalPagination cursor from a previous response
order
EnumOptionalSort order for results
consumer_group_id
UnionOptionalFilter by consumer group ID(s)
server_deployment_template_id
UnionOptionalFilter by deployment template ID(s)
type
UnionOptionalFilter by access type
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-access" \-H "Authorization: Bearer metorial_sk_..."
Get Consumer Access by ID
Retrieves details for a specific portal by its ID.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_access_id
StringThe unique identifier for the consumer_access
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-access/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create Consumer Access
Creates a new sso tenant for the instance.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
consumer_group_id
Stringaccess
Objectcurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-access" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"consumer_group_id": "example_consumer_group_id","access": {"type": "example_type","server_deployment_template_id": "example_server_deployment_template_id"}}'
Delete Portal
Deletes a portal from the instance.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_access_id
StringThe unique identifier for the consumer_access
curl -X DELETE "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-access/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."