CatalogedApi
Parent Type
File Suffix and Directory Location
CatalogedApi components have the suffix .catalogedApi and are stored in the catalogedApis folder.
Version
CatalogedApi components are available in API version 65.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| description | string | The description defined when the API is cataloged. |
| descriptor | string | The content of the API schema in JSON format. |
| externalSourceIdentifier | string | The ID of the API in the external source that it's imported from. |
| instances | CatalogedApiInstance[] | Reference to the cataloged API that this instance is specific to. |
| label | string |
Required. The API name as it appears in API Catalog. |
| providerType | ExternalServiceRegistrationProviderType (enumeration of type string) | Required. Indicates the source of the API specification registered with API
Catalog. API Catalog supports the value Anypoint for deployment and supports other values for enumeration. See information about the values in the registrationProviderType field. |
| type | APIType (enumeration of type string) |
Required. Specifies the API type. If not specified, the API type is derived based on the descriptor content. Nillable. Values are:
|
CatalogedApiInstance
Represents a MuleSoft API instance brought into API Catalog for Salesforce from Anypoint Platform.
| Field Name | Field Type | Description |
|---|---|---|
| accessStatus | APIInstanceAccessStatus (enumeration of type string) |
Required. The access status for the API instance. Values are:
|
| apiInstanceDescriptor | string | The content of the API schema in JSON format. |
| approvalType | APIInstanceApprovalType (enumeration of type string) |
Required. The approval type for access in Anypoint Platform. Values are:
|
| endpointType | APIInstanceEndpointType (enumeration of type string) |
The endpoint type to invoke the instance. Available in API version 66.0 and later. Values are:
|
| label | string |
Required. The instance name as it appears in API Catalog. |
| serviceRegistration | string |
Required. The service registration in external services related to this API instance. |
| uri | string |
Required. The uniform resource identifier (URI) for the instance. |
Declarative Metadata Sample Definition
This XML is an example of a CatalogedApi component.
1<?xml version="1.0" encoding="UTF-8"?>
2<CatalogedApi xmlns="http://soap.sforce.com/2006/04/metadata">
3 <externalSourceIdentifier>urn:ms:03ff2c74-d0ea-4eba-a536-36dfd2d0fdbb:api-project::petstore-engineering</externalSourceIdentifier>
4 <instances>
5 <accessStatus>NoStatus</accessStatus>
6 <apiInstanceDescriptor>{"@type":"anypointAPIInstanceDescriptor","environmentType":"SANDBOX","environmentName":"Sandbox","environmentId":"79305d19-1d89-413f-88ec-d7a8dbd1e29d","instanceId":"4051358","authenticationMethod":"NO_AUTH","componentType":"apiInstance","instanceOrigin":"MANUAL"}</apiInstanceDescriptor>
7 <approvalType>NoApproval</approvalType>
8 <label>petstore-engineering</label>
9 <serviceRegistration>PetstoreEngineeringv109C60C7C</serviceRegistration>
10 <uri>https://google.com</uri>
11 </instances>
12 <label>petstore-engineering</label>
13 <providerType>Anypoint</providerType>
14 <type>REST</type>
15</CatalogedApi>