air_sdk.endpoints.marketplace_demo_publish_access_records
air_sdk.endpoints.marketplace_demo_publish_access_records
Classes
Module Contents
Bases: air_sdk.air_model.AirModel
Represents a request to publish or change the visibility of a marketplace demo.
Publish access records are created when an org requests to publish a marketplace demo or change its visibility. An admin must review the request and either approve or deny it.
Unique identifier for the record
Timestamp when the record was created
Timestamp when the record was last modified
The marketplace demo the request is for (foreign key — lazily resolved)
Name of the marketplace demo at the time of the request
Email of the user who submitted the request, or None
Timestamp when the request was submitted, or None
Org’s readable_name (display_name or ngc_org_name), or None
Display name of the requesting org, or None
NGC org name of the requesting org, or None
Email of the admin who reviewed the request, or None
Timestamp when the request was reviewed, or None
Current status of the request
Whether the marketplace demo should be publicly accessible
Whether the requester prefers public over allowlist
Requester’s reason for the request
Free-text description of orgs to allowlist
List of org UUIDs on the allowlist, or None. Note: Only populated for admin callers; non-admins receive None.
Reason the request was denied, or empty string if not yet denied
Approve this request.
See MarketplaceDemoPublishAccessRecordEndpointAPI.approve.
Deny this request.
See MarketplaceDemoPublishAccessRecordEndpointAPI.deny.
Set visibility.
See MarketplaceDemoPublishAccessRecordEndpointAPI.set_visibility.
Bases: air_sdk.air_model.BaseEndpointAPI[air_sdk.endpoints.marketplace_demo_publish_access_records.MarketplaceDemoPublishAccessRecord]
Endpoint API for managing marketplace demo publish access records.
Provides methods for listing and retrieving records, plus admin actions to approve, deny, or change the visibility of a pending request. Records are created automatically by the Air platform when a publish or visibility-change request is submitted — they cannot be created via the SDK.
List marketplace demo publish access records.
Parameters:
marketplace_demo– Filter by marketplace demo UUIDstatus– Filter by request statuspublicly_published– Filter by public vs restricted visibilityrequested_by_email– Filter by requester email (case-insensitive)requesting_org_display_name– Filter by org display name (case-insensitive)requesting_org_ngc_org_name– Filter by org NGC name (case-insensitive)limit– Number of results to return per pageoffset– Initial index from which to return resultsordering– Order by field (prefix with-for descending)search– Search query
Returns:
Iterator of MarketplaceDemoPublishAccessRecord instances
Example:
Retrieve a specific publish access record.
Parameters:
pk– Record UUID**kwargs– Additional query parameters
Returns:
MarketplaceDemoPublishAccessRecord instance
Example:
Approve a pending publish access request.
Parameters:
record– The record to approve (instance or UUID)publicly_published– Whether to make the marketplace demo publicly accessible. When False, access is restricted toallowed_orgs.allowed_orgs– List of org UUIDs that may access the marketplace demo. Only meaningful whenpublicly_publishedis False.**kwargs– Additional parameters
Returns:
Updated MarketplaceDemoPublishAccessRecord with status APPROVED
Example:
Deny a pending publish access request.
Parameters:
record– The record to deny (instance or UUID)denial_reason– Human-readable explanation of why the request was denied**kwargs– Additional parameters
Returns:
Updated MarketplaceDemoPublishAccessRecord with status DENIED
Example:
Update the visibility of a published marketplace demo.
Parameters:
record– The record to update (instance or UUID)publicly_published– Whether the marketplace demo should be publicly accessible. When False, access is restricted toallowed_orgs.allowed_orgs– List of org UUIDs that may access the marketplace demo. Only meaningful whenpublicly_publishedis False.publish_images– When True, also publish referenced images owned by the demo’s organization that do not cover the demo’s target audience. Defaults to False.**kwargs– Additional parameters
Returns:
Updated MarketplaceDemoPublishAccessRecord
Example: