Skip to main content

#MuleSoft API Manager0 discussing

Questions and answers about MuleSoft API Manager, best practices, and use cases.

How to write regex for resource in Client ID enforcement policy for a resource like below.

 

emp/{empid}/salary

2 answers
  1. Feb 24, 12:57 PM

    Ans:          ^/emp/[^/]+/salary$ 

     

    here detailed explanation on each special regular expression: 

     

    ^ = Start of path 

     

    /emp/ = Fixed part 

     

    [^/]+ = Matches any value for empid (anything except /) 

     

    /salary = Fixed part 

     

    $ = End of path

0/9000
3 answers
0/9000

Though i write a xpath to fetch all the child and their corresponding subchild elements of a particular type its fetching the first occuring child elements and its corresponding sub child elements.

18 answers
  1. Mar 24, 2015, 5:36 AM

    I am not sure if this an XML input you are trying to fetch with XPATH

0/9000

While working through the Quick Start Tutorial, I encountered what I believe to be an issue with database access. Using the provided credentials in the tutorial, I was unable to connect and thus cannot continue with the tutorial. I have verified that the credential information provided on the tutorial was entered correctly into Anypoint Studio. Here is the error message that is displayed after a test of the connection fails:

Test connection failed: Couldn't resolve the operation in the the expected time frame (180000ms)

 

Reason: org.mule.tooling.client.api.exception.TimeoutException: Couldn't resolve the operation in the the expected time frame (180000ms)

And here are the credentials currently being utilized to establish a connection (listed within the Quick Start Tutorial Part 2):

Host: congo.c3w6upfzlwwe.us-west-1.rds.amazonaws.com

Port: 3306

User: mulesoft

Password: mulesoft

Database: congo

 It should be noted that up until this point, all other tutorial steps completed correctly. This includes the addition of recommended libraries for the connector, which was completed just before the connection issues were encountered.

7 answers
0/9000

Hi,

 

I am unable to deploy API Proxy under API Status in API Manager. When i click on Deploy Proxy, it is showing only cancel button there is no Deploy button.

 

Please check and let me know how can i deploy and test API Proxy scenario. i have uploaded the screen shot also.

 

Unable to Deploy API Proxy in API Status

 

4 answers
  1. Sep 4, 2016, 6:36 PM

    As per message in snapshot "Selected environment does not have API Gateways configured for deploying your proxy application" .

     

    So add gateway configuration and yo will be able to deploy proxy.

0/9000

I defined one dynamic parameter in RAML:

/borrowers:

/{lastName:

displayName: Last Name

uriParameters:

lastName:

type: string

example: "Green"

 

How to define more uri parameters?

If I change RAML what is the best way to update api project in anypoint studio?

Thanks,

Polina

4 answers
  1. Jan 11, 2017, 5:17 PM

    So, how do you want to design your uriParam ? you need specify your url how you need to implement your multiple uriParas ...

    An example will be :-

     

    /borrowers/{lastName}/{firstName}:

    displayName: lastName

    uriParameters:

    lastName:

    displayName: lastName

    type: string

    example: "Green"

    firstName:

    displayName: firstName

    type: string

    example: "Red"

    get:

    description: Test method

     

    ** *"If I change RAML what is the best way to update api project in anypoint studio? "***

    To answer your next question, you need to select your RAML file in your Anypiint Studio under the `src/main/api` path, right click on it, then go to the mule in the menu and select Generate flows from Rest api as follows:-

     

    So, how do you want to design your uriParam ? you need specify your url how you need to implement your multiple uriParas ...

     

     

    It will re-generate the flows again

0/9000

Hi there,

 

I am trying to deploy API proxy and am getting the below exception. I currently have an application and assume the test account I am logged in seems to restrict deploying additional application. I am doing this as part of MuleSoft Development Fundamentals course online.

 

The maximum number (1.0) of live production vcores will be exceeded. You are already using 1.0 vcores and this would add 0.1 more.

 

Please let me know if you have any suggestions.

 

Regards

Ravi.

9 answers
  1. Jun 6, 2017, 6:38 PM

    @arturb33 If you select the deployed application in cloudhub, you will get to edit the config and change the vcores for the deployed application. you need to lower the vcores value to 0.1 from 1.0 (which is by default) for that application so that other applications can be deployed within the given limit. The max is 1.0 vcores

0/9000

Hello,

 

I am following the instruction but still not sure what is the Problem, its not allowing to deploy

API proxy.

 

API proxy deployment Issue in cloudhub

 

 

Please suggest.

 

Thanks,

Anupam

10 answers
  1. Apr 15, 2017, 2:03 PM

    @santosh00 Pls don't repeat the answer that is already given.

0/9000

Hello

 

I have scenario , where i am sending a parameter in an HTTP request header to a mule HTTP inbound . Now , all the HTTP headers will be converted to inbound properties of mule .

 

I have a requirement where i have to search for the existence of a particular header parameter(reply-to) in the inbound properties of mule message and route accordingly.

 

I am using the MEL to achieve this but not working properly ... Need Help !! [image]

 

<choice tracking:enable-default-events="true" doc:name="Choice">

<when expression="# [message&# 46;inboundProperties&# 46;'reply-to'!='null']">

<logger message=""Its a reply - to parametred call"" level="INFO" doc:name="reply-to flow "/>

</when>

<otherwise>

<logger message=""its a normal call"" level="INFO" doc:name="normal flow "/>

</otherwise>

</choice>

40 answers
  1. Apr 5, 2016, 5:55 PM

    @snguyen38 pls read the question and follow the answers then you will find the question is already answered :)

0/9000

How to read single file from a list of files within a directory and also i want to know, can i assign set payload output to an variable, where logger stores the log info.

10 answers
  1. Mar 25, 2015, 5:57 AM

    sorry a small typing mistake : it will be

    <file:filename-regex-filter pattern="abc&# 46;txt" caseSensitive="false"/>

    for selecting a particular file .. sorry for that

0/9000