create_product
¶
create_product(
display_name: ProductName,
*,
config_overrides: Optional[APIPortalClientConfig] = None,
description: Optional[ProductDescription] = None,
tags: Optional[Tags] = None,
api_selection_configuration: Optional[ApiSelectionConfiguration] = None,
) -> CreateProductResponse
Creates a product. A product groups Managed APIs with their API pages and product pages so a portal can publish them together.
Parameters:
-
display_name(ProductName) –The name of the product, from 1 to 255 characters.
-
description(Optional[ProductDescription], default:None) –A description of the product, up to 1024 characters.
-
api_selection_configuration(Optional[ApiSelectionConfiguration], default:None) –How Managed APIs are selected for the product. The selection mode can't be changed after the product is created.
Raises:
-
AccessDeniedException–You do not have permission to perform this operation.
-
BadRequestException–The request is not valid. The message identifies the field or value that failed validation.
-
LimitExceededException–The request rate or a service quota was exceeded. Reduce the request rate or the number of resources and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apiportal/_services/api_portal.py
1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 | |