Azure Cosmos DB Connector 1.0 Reference | MuleSoft Documentation
# Azure Cosmos DB Connector 1.0 Reference
## Configurations
### Key Token Config
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Name for this configuration. Connectors reference the configuration with this name.  
Connection |  Key Token Auth Connection Provider | Connection types for this configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default) Connector automatically uses the best streaming strategy based on the request content.
  * `ALWAYS` Connector always streams the request content.
  * `NEVER` Connector does not stream the request content.

  
ID used to reference this configuration.  
Expiration Policy |  Expiration Policy | Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration.  
#### Connection Types
##### Key Token Auth Connection Provider
###### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Proxy Config | Configures a proxy for outbound connections.  
Default Headers |  Array of Default Header.  
Query Parameters |  Array of Default Query Param.  
Connection Timeout | How long the connector waits before timing out when establishing a connection to the remote service.  
Connection Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Connection Timeout** field.  
Use Persistent Connections |  Indicates whether to use persistent connections:
  * `true` Mule uses persistent connections.
  * `false` Mule closes the connection after the first request completes.

  
Max Connections | Maximum number of connections to open to the backend. HTTP requests are sent in parallel over multiple connections. Setting this value too high can impact latency and consume additional resources without increasing throughput.  
Connection Idle Timeout | When persistent connections are enabled, how long a connection can remain idle before Mule closes it.  
Connection Idle Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Connection Idle Timeout** field.  
Stream Response | If this value is `true`, Mule streams received responses.  
Response Buffer Size | Size of the buffer that stores the HTTP response, in bytes.  
Database account url | Database account URL.  
Key token | All access key token that enables users to have full control of the Cosmos DB resources.  
Version of the Cosmos DB REST service.  
TLS configuration | If HTTPS is configured as a protocol, the user must configure at least the keystore configuration.  
Reconnection |  |  What to do if, when an app is deployed, a connectivity test does not pass after exhausting the associated reconnection strategy:
  * `true` Allow the deployment to fail.
  * `false` Ignore the results of the connectivity test.

  
## Supported Operations
  * Create Document
  * Create Permission
  * Create Stored Procedure
  * Delete Document
  * Delete Permission
  * Delete Stored Procedure
  * Execute Stored Procedure
  *   * Get Permission
  * List Documents
  * List Permissions
  * List Stored Procedures
  * Query Documents
  * Replace Document
  * Replace Permission
  * Replace Stored Procedure


### Resource Token Config
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Name for this configuration. Connectors reference the configuration with this name.  
Connection |  Resource Token Auth Connection Provider | Connection types for this configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default) Connector automatically uses the best streaming strategy based on the request content.
  * `ALWAYS` Connector always streams the request content.
  * `NEVER` Connector does not stream the request content.

  
ID used to reference this configuration.  
Expiration Policy |  Expiration Policy | Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration.  
#### Connection Types
##### Resource Token Auth Connection Provider
###### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Proxy Config | Configures a proxy for outbound connections.  
Default Headers |  Array of Default Header.  
Query Parameters |  Array of Default Query Param.  
Connection Timeout | How long the connector waits before timing out when establishing a connection to the remote service.  
Connection Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Connection Timeout** field.  
Use Persistent Connections |  Indicates whether to use persistent connections:
  * `true` Mule uses persistent connections.
  * `false` Mule closes the connection after the first request completes.

  
Max Connections | Maximum number of connections to open to the backend. HTTP requests are sent in parallel over multiple connections. Setting this value too high can impact latency and consume additional resources without increasing throughput.  
Connection Idle Timeout | When persistent connections are enabled, how long a connection can remain idle before Mule closes it.  
Connection Idle Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Connection Idle Timeout** field.  
Stream Response | If this value is `true`, Mule streams received responses.  
Response Buffer Size | Size of the buffer that stores the HTTP response, in bytes.  
Database account url | Database account URL.  
Resource token | Resource token.  
Version of the Cosmos DB REST service.  
TLS configuration | If HTTPS is configured as a protocol, the user must configure at least the keystore configuration.  
Reconnection |  |  What to do if, when an app is deployed, a connectivity test does not pass after exhausting the associated reconnection strategy:
  * `true` Allow the deployment to fail.
  * `false` Ignore the results of the connectivity test.

  
## Supported Operations
  * Create Document
  * Create Stored Procedure
  * Delete Document
  * Delete Stored Procedure
  * Execute Stored Procedure
  *   * List Documents
  * List Stored Procedures
  * Query Documents
  * Replace Document
  * Replace Stored Procedure


## Create Document
`<azure-cosmos-db-connector-mule-4:create-document>`
Creates a new document in a collection. This operation makes an HTTP POST request to the /dbs/{dbId}/colls/{collId}/docs endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
X ms documentdb is upsert | If set to `true`, Cosmos DB does the following: * Creates the document with the ID (and partition key value, if applicable), if the document doesn’t exist. * Updates the document, if it exists.  
X ms indexing directive |  Enumeration, one of:
  * INCLUDE
  * EXCLUDE

| The default for indexing behavior is determined by the automatic property’s value in the indexing policy for the collection.  
X ms documentdb partitionkey | Partition key value for the document to create. Must be specified only if the collection is created with a **partitionKey** definition, for example, ["partitionKey"].  
Content to use. | #[payload]  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS
| The default for indexing behavior is determined by the automatic property’s value in the indexing policy for the collection.  
X ms documentdb partitionkey | Partition key value for the document to create. Must be specified only if the collection is created with a **partitionKey** definition, for example, ["partitionKey"].  
Content to use. | #[payload]  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Create Permission
`<azure-cosmos-db-connector-mule-4:create-permission>`
Creates a new permission in a database. This operation makes an HTTP POST request to the /dbs/{dbId}/users/{userName}/permissions endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the permission is created.  
Username | Name of the user that owns the permission.  
X ms documentdb expiry seconds | Validity period of the resource token returned by the operation.  
Content to use. | #[payload]  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Create Stored Procedure
`<azure-cosmos-db-connector-mule-4:create-stored-procedure>`
Creates a new stored procedure in a collection. This operation makes an HTTP POST request to the /dbs/{dbId}/colls/{collId}/sprocs endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
Content to use. | #[payload]  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config
| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Delete Document
`<azure-cosmos-db-connector-mule-4:delete-document>`
Deletes an existing document from a collection. This operation makes an HTTP DELETE request to the /dbs/{dbId}/colls/{collId}/docs/{doc-id} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
ID of the document to delete.  
X ms documentdb partitionkey | Partition key value for the document to delete. Must be specified only if the collection is created with a **partitionKey** definition, for example, ["partitionKey"].  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Delete Permission
`<azure-cosmos-db-connector-mule-4:delete-permission>`
Deletes a permission from a database. This operation makes an HTTP DELETE request to the /dbs/{dbId}/users/{userName}/permissions/{permissionId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the permission is deleted.  
Username | Name of the user that owns the permission.  
Permission Id | ID of the permission to delete.  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED
| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Delete Stored Procedure
`<azure-cosmos-db-connector-mule-4:delete-stored-procedure>`
Deletes an existing stored procedure from a collection. This operation makes an HTTP DELETE request to the /dbs/{dbId}/colls/{collId}/sprocs/{sprocId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
Sproc Id | ID of the stored procedure to delete.  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Execute Stored Procedure
`<azure-cosmos-db-connector-mule-4:execute-stored-procedure>`
Executes a stored procedure by performing a POST on a stored procedure resource. This operation makes an HTTP POST request to the /dbs/{dbId}/colls/{collId}/sprocs/{sprocId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User generated name or ID of the database in which the stored procedure is executed.  
Name of the collection in which the stored procedure is executed.  
Sproc Id | ID of the stored procedure to execute.  
Array of String | Content to use. | #[payload]  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Get Document
`<azure-cosmos-db-connector-mule-4:get-document>`
Retrieves a document by its partition key and document key. This operation makes an HTTP GET request to the /dbs/{dbId}/colls/{collId}/docs/{doc-id} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
Name of the document to replace.  
If None Match | Indicates whether the operation is conditional, which means if the response includes a body, the value in the database is different from the specified value in the header. The value must be the ETag of the resource.  
X ms documentdb partitionkey | Partition key value for the document to read. Must be specified only if the collection is created with a **partitionKey** definition, for example, ["partitionKey"].  
X ms consistency level |  Enumeration, one of:
  * STRONG
  * BOUNDED
  * SESSION
  * EVENTUAL
## Get Document
`<azure-cosmos-db-connector-mule-4:get-document>`
Retrieves a document by its partition key and document key. This operation makes an HTTP GET request to the /dbs/{dbId}/colls/{collId}/docs/{doc-id} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
Name of the document to replace.  
If None Match | Indicates whether the operation is conditional, which means if the response includes a body, the value in the database is different from the specified value in the header. The value must be the ETag of the resource.  
X ms documentdb partitionkey | Partition key value for the document to read. Must be specified only if the collection is created with a **partitionKey** definition, for example, ["partitionKey"].  
X ms consistency level |  Enumeration, one of:
  * STRONG
  * BOUNDED
  * SESSION
  * EVENTUAL

| Consistency level override. The valid values are listed in order of strongest to weakest. The override must be the same or weaker than the account’s configured consistency level.  
X ms session token | String token used with session level consistency. Clients must echo the latest read value of this header during read requests for session consistency.  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Get Permission
`<azure-cosmos-db-connector-mule-4:get-permission>`
Gets a permission from the specified database. This operation makes an HTTP GET request to the /dbs/{dbId}/users/{userName}/permissions/{permissionId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the permission is retrieved.  
Username | Name of the user that owns the permission.  
Permission Id | ID of the permission to retrieve.  
X ms documentdb expiry seconds | Validity period of the resource token returned by the operation.  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## List Documents
`<azure-cosmos-db-connector-mule-4:list-documents>`
Returns a list of documents under the collection. This operation makes an HTTP GET request to the /dbs/{dbId}/colls/{collId}/docs endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
X ms consistency level |  Enumeration, one of:
  * STRONG
  * BOUNDED
  * SESSION
  * EVENTUAL

| Consistency level override. The valid values are listed in order of strongest to weakest. The override must be the same or weaker than the account’s configured consistency level.  
X ms session token | String token used with session level consistency. Clients must echo the latest read value of this header during read requests for session consistency.  
Must be set to `Incremental feed`, or omitted otherwise. Available for REST API version 2016-07-11 and later.  
If None Match |  Available for REST API version 2016-07-11 and later.
  * No header Returns all changes from the beginning (collection creation).
  * "*" Returns all new changes to data within the collection.
  * A collection ETag Returns all changes made since that logical timestamp.
| Consistency level override. The valid values are listed in order of strongest to weakest. The override must be the same or weaker than the account’s configured consistency level.  
X ms session token | String token used with session level consistency. Clients must echo the latest read value of this header during read requests for session consistency.  
Must be set to `Incremental feed`, or omitted otherwise. Available for REST API version 2016-07-11 and later.  
If None Match |  Available for REST API version 2016-07-11 and later.
  * No header Returns all changes from the beginning (collection creation).
  * "*" Returns all new changes to data within the collection.
  * A collection ETag Returns all changes made since that logical timestamp.

  
X ms documentdb partitionkeyrangeid | Partition key range ID for reading data. Available for REST API version 2016-07-11 and later.  
Output Mime Type | MIME type of the payload that this operation outputs.  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Iterable
  * Repeatable File Store Iterable
  * non-repeatable-iterable

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Array of Any  
---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## List Permissions
`<azure-cosmos-db-connector-mule-4:list-permissions>`
Lists permissions of a user from a database. This operation makes an HTTP GET request to the /dbs/{dbId}/users/{userName}/permissions endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the permission is retrieved.  
Username | Name of the user that owns the permission.  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## List Stored Procedures
`<azure-cosmos-db-connector-mule-4:list-stored-procedures>`
Returns a list of the stored procedures in the collection. This operation makes an HTTP GET request to the /dbs/{dbId}/colls/{collId}/sprocs endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config
| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Query Documents
`<azure-cosmos-db-connector-mule-4:query-documents>`
Queries documents. This operation makes an HTTP POST request to the /dbs/{dbId}/colls/{collId}/docs endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
X ms documentdb query enablecrosspartition | If the collection is partitioned, this parameter must be set to `true` to enable execution across multiple partitions. Queries that filter against a single partition key, or against single-partitioned collections do not need to set the header.  
X ms consistency level |  Enumeration, one of:
  * STRONG
  * BOUNDED
  * SESSION
  * EVENTUAL

| Consistency level override. The valid values are listed in order of strongest to weakest. The override must be the same or weaker than the account’s configured consistency level.  
X ms session token | String token used with session level consistency. Clients must echo the latest read value of this header during read requests for session consistency.  
Content to use. | #[payload]  
Output Mime Type | MIME type of the payload that this operation outputs.  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Iterable
  * Repeatable File Store Iterable
  * non-repeatable-iterable

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Array of Any  
---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Replace Document
`<azure-cosmos-db-connector-mule-4:replace-document>`
Replaces the entire content of a document. This operation makes an HTTP PUT request to the /dbs/{dbId}/colls/{collId}/docs/{doc-id} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is created.  
Name of the collection in which the stored procedure is created.  
Name of the document to replace.  
If Match | Indicates whether an operation is conditional for optimistic concurrency, which means the document is updated only if the specified ETag matches the current version in the database. The value must be set to the ETag value of the resource.  
X ms indexing directive |  Enumeration, one of:
  * INCLUDE
  * EXCLUDE

| The default for indexing behavior is determined by the automatic property’s value in the indexing policy for the collection.  
X ms documentdb partitionkey | Partition key value for the document to replace. Must be specified only if the collection is created with a **partitionKey** definition, for example, ["partitionKey"].  
Content to use. | #[payload]  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config
| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Replace Permission
`<azure-cosmos-db-connector-mule-4:replace-permission>`
Replaces a permission from a database. This operation makes an HTTP PUT request to the /dbs/{dbId}/users/{userName}/permissions/{permissionId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the permission is replaced.  
Username | Name of the user that owns the permission.  
Permission Id | ID of the permission to replace.  
X ms documentdb expiry seconds | Validity period of the resource token returned by the operation.  
Content to use. | #[payload]  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Replace Stored Procedure
`<azure-cosmos-db-connector-mule-4:replace-stored-procedure>`
Replaces the entire stored procedure resource. All user settable properties, including the ID and the body, must be submitted in the body to perform the replacement. This operation makes an HTTP PUT request to the /dbs/{dbId}/colls/{collId}/sprocs/{sprocId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | Name of the configuration to use.  
User-generated name or ID of the database in which the stored procedure is replaced.  
Name of the collection in which the stored procedure is replaced.  
Sproc Id | ID of the stored procedure to replace.  
Content to use. | #[payload]  
Config Ref |  ConfigurationProvider | Name of the configuration used to execute this component.  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | How long Mule waits for a response to complete before the request times out.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  How the connector streams request content to the remote service:
  * `AUTO` (default)

Connector automatically uses the best streaming strategy based on the request content. Connector always streams the request content. Connector does not stream the request content.  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED
| Retry strategy in case of connectivity errors.  
### Output
Attributes Type |  HTTP Response Attributes  
---|---  
### For Configurations
  * Key Token Config
  * Resource Token Config


### Throws
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:BAD_REQUEST
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CLIENT_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:CONNECTIVITY
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:INTERNAL_SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:NOT_FOUND
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:RETRY_EXHAUSTED
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVER_ERROR
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:SERVICE_UNAVAILABLE
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TIMEOUT
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:TOO_MANY_REQUESTS
  * AZURE-COSMOS-DB-CONNECTOR-MULE-4:UNAUTHORIZED


## Types
### Proxy
Configures a proxy for outbound connections.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Hostname or IP address of the proxy server.  
Port of the proxy server.  
Username to authenticate against the proxy server.  
Password to authenticate against the proxy server.  
**Non Proxy Hosts** |  Comma-separated list of hosts that the proxy must not be used against.  
### Default Header
Headers automatically added to every outbound request.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Key for this type.  
Value for this type.  
### Default Query Param
Query parameters automatically added to every outbound request.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Key for this type.  
Value for this type.  
Configures TLS to provide secure communications for the Mule app.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Enabled Protocols** |  Comma-separated list of protocols enabled for this context.  
**Enabled Cipher Suites** |  Comma-separated list of cipher suites enabled for this context.  
**Trust Store** |  Configures the TLS truststore.  
Configures the TLS keystore.  
**Revocation Check** | 
  * Standard Revocation Check
  * Custom OCSP Responder

|  Configures a revocation checking mechanism.  
### Truststore
Configures the truststore for TLS.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Path to the truststore. Mule resolves the path relative to the current classpath and file system.  
Password used to protect the truststore.  
Type of truststore.  
Encryption algorithm that the truststore uses.  
If `true`, Mule stops performing certificate validations. Setting this to `true` can make connections vulnerable to attacks.  
### Keystore
Configures the keystore for the TLS protocol. The keystore you generate contains a private key and a public certificate.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Path to the keystore. Mule resolves the path relative to the current classpath and file system.  
Type of keystore.  
Alias of the key to use when the keystore contains multiple private keys. By default, Mule uses the first key in the file.  
**Key Password** |  Password used to protect the private key.  
Password used to protect the keystore.  
Encryption algorithm that the keystore uses.  
### Standard Revocation Check
Configures standard revocation checks for TLS certificates.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Only End Entities** |  Which elements to verify in the certificate chain:
  * `true` Verify only the last element in the certificate chain.
  * `false` Verify all elements in the certificate chain.

  
**Prefer Crls** |  How to check certificate validity:
  * `true` Check the Certification Revocation List (CRL) for certificate validity.
  * `false` Use the Online Certificate Status Protocol (OCSP) to check certificate validity.

  
**No Fallback** |  Whether to use the secondary method to check certificate validity:
  * `true` Use the method that wasn’t specified in the **Prefer Crls** field (the secondary method) to check certificate validity.
  * `false` Do not use the secondary method to check certificate validity.

  
What to do if the revocation server can’t be reached or is busy:
  * `true` Avoid verification failure.
  * `false` Allow the verification to fail.

  
### Custom OCSP Responder
Configures a custom OCSP responder for certification revocation checks.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
URL of the OCSP responder.  
**Cert Alias** |  Alias of the signing certificate for the OCSP response. If specified, the alias must be in the truststore.  
### CRL File
Specifies the location of the certification revocation list (CRL) file.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Path to the CRL file.  
### Reconnection
Configures a reconnection strategy for an operation.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Fails Deployment** |  What to do if, when an app is deployed, a connectivity test does not pass after exhausting the associated reconnection strategy:
  * `true` Allow the deployment to fail.
  * `false` Ignore the results of the connectivity test.

  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  Reconnection strategy to use.  
### Reconnect
Configures a standard reconnection strategy, which specifies how often to reconnect and how many reconnection attempts the connector source or operation can make.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often to attempt to reconnect, in milliseconds.  
If `false`, the reconnection strategy runs in a separate, non-blocking thread.  
How many reconnection attempts the Mule app can make.  
### Reconnect Forever
Configures a forever reconnection strategy by which the connector source or operation attempts to reconnect at a specified frequency for as long as the Mule app runs.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often to attempt to reconnect, in milliseconds.  
If `false`, the reconnection strategy runs in a separate, non-blocking thread.  
### Expiration Policy
Configures an expiration policy strategy.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Max Idle Time** |  Configures the maximum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration.  
Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS
|  Reconnection strategy to use.  
### Reconnect
Configures a standard reconnection strategy, which specifies how often to reconnect and how many reconnection attempts the connector source or operation can make.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often to attempt to reconnect, in milliseconds.  
If `false`, the reconnection strategy runs in a separate, non-blocking thread.  
How many reconnection attempts the Mule app can make.  
### Reconnect Forever
Configures a forever reconnection strategy by which the connector source or operation attempts to reconnect at a specified frequency for as long as the Mule app runs.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often to attempt to reconnect, in milliseconds.  
If `false`, the reconnection strategy runs in a separate, non-blocking thread.  
### Expiration Policy
Configures an expiration policy strategy.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Max Idle Time** |  Configures the maximum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration.  
Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  Time unit for the **Max Idle Time** field.  
### HTTP Response Attributes
Configures HTTP response attributes for the configuration.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Status Code** |  HTTP status code of the response.  
Map of HTTP headers in the message.  
**Reason Phrase** |  HTTP reason phrase of the response.  
### Repeatable In Memory Stream
Configures the in-memory streaming strategy by which the request fails if the data exceeds the MAX buffer size. Always run performance tests to find the optimal buffer size for your specific use case.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Initial Buffer Size** |  Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by **Buffer Size Increment** , with an upper limit of **Max In Memory Size value**.  
**Buffer Size Increment** |  Amount by which the buffer size expands if it exceeds its initial size. Setting a value of `0` or lower specifies that the buffer can’t expand.  
**Max Buffer Size** |  The maximum amount of memory to use. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower than or equal to zero means no limit.  
**Buffer Unit** |  Enumeration, one of: |  Unit for the **Initial Buffer Size** , **Buffer Size Increment** , and **Buffer Unit** fields.  
### Repeatable File Store Stream
Configures the repeatable file-store streaming strategy by which Mule keeps a portion of the stream content in memory. If the stream content is larger than the configured buffer size, Mule backs up the buffer’s content to disk and then clears the memory.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**In Memory Size** |  Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance:
  * Configure a larger buffer size to avoid the number of times Mule needs to write the buffer on disk. This increases performance, but it also limits the number of concurrent requests your application can process, because it requires additional memory.
  * Configure a smaller buffer size to decrease memory load at the expense of response time.

  
**Buffer Unit** |  Enumeration, one of: |  Unit for the **In Memory Size** field.  
### Repeatable In Memory Iterable
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Initial Buffer Size** |  The amount of instances that is initially be allowed to be kept in memory to consume the stream and provide random access to it. If the stream contains more data than can fit into this buffer, then the buffer expands according to the **Buffer Size Increment** attribute, with an upper limit of **Max In Memory Size**. The default value is 100 instances.  
**Buffer Size Increment** |  This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full. The default value is 100 instances.  
**Max Buffer Size** |  The maximum amount of memory to use. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower than or equal to zero means no limit.  
### Repeatable File Store Iterable
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**In Memory Objects** |  The maximum amount of instances to keep in memory. If more than that is required, content on the disk is buffered.  
**Buffer Unit** |  Enumeration, one of: |  Unit for the **In Memory Size** field.  
## See Also
  * Introduction to Anypoint Connectors
  * MuleSoft Help Center