Create a SipServer Child MBean
A GET request to the URL below returns the CreateForm URLs that are used
to create child MBeans. After discovering the CreateForm URLs, make a GET request to the
appropriate CreateForm URL to retrieve both the default parameters and the
create
URL. Send a POST request to the create
URL to
create the child MBean.
URL Syntax
For the initial GET:
/management/weblogic/latest/edit/customResources/sipserver/customResource
For the subsequent GET:
/management/weblogic/latest/edit/customResources/sipserver/customResource/<resource>CreateForm
HTTP Methods
- GET
- POST
Parameters
Table 17-2 URL Parameters for the customResource endpoint
Names | Description |
---|---|
links | Set to none if you want to remove
the links from the response. Set to an enumerated list of the links
to return. For
example:
|
fields | Set to an enumerated list of the fields to return.
For
example:
|
Examples
Example 17-11 Get the child MBean URLs
curl -u 'weblogic:<password>' \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource"
Example response:
{
"links": [
{
"rel": "parent",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver"
},
{
"rel": "self",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource"
},
{
"rel": "canonical",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource"
},
{
"rel": "connectionReusePools",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/connectionReusePools"
},
{
"rel": "connectionReusePoolCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/connectionReusePoolCreateForm"
},
{
"rel": "extensions",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/extensions"
},
{
"rel": "filters",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/filters"
},
{
"rel": "clusterLoadbalancerMaps",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/clusterLoadbalancerMaps"
},
{
"rel": "clusterLoadbalancerMapCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/clusterLoadbalancerMapCreateForm"
},
{
"rel": "proxy",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/proxy"
},
{
"rel": "proxyCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/proxyCreateForm"
},
{
"rel": "sipSecurity",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/sipSecurity"
},
{
"rel": "sipSecurityCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/sipSecurityCreateForm"
},
{
"rel": "appRouter",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/appRouter"
},
{
"rel": "appRouterCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/appRouterCreateForm"
},
{
"rel": "messageDebug",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/messageDebug"
},
{
"rel": "messageDebugCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/messageDebugCreateForm"
},
{
"rel": "overloadProtection",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/overloadProtection"
},
{
"rel": "overloadProtectionCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/overloadProtectionCreateForm"
},
{
"rel": "persistence",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/persistence"
},
{
"rel": "persistenceCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/persistenceCreateForm"
},
{
"rel": "routeHeader",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/routeHeader"
},
{
"rel": "routeHeaderCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/routeHeaderCreateForm"
},
{
"rel": "overload",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/overload"
},
{
"rel": "overloadCreateForm",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/overloadCreateForm"
}
],
"identity": [
"customResources",
"sipserver",
"customResource"
],
"timerMTimeoutInterval": 32000,
"enableTimerAffinity": false,
"enableSipOutBound": true,
"useHeaderForm": "long",
"t2TimeoutInterval": 4000,
"globallyRoutableUri": null,
"serverHeader": "none",
"timerNTimeoutInterval": 32000,
"replicationEnabled": false,
"enableDnsSrvLookup": false,
"enableLocalDispatch": false,
"defaultBehavior": "proxy",
"t1TimeoutInterval": 500,
"maxApplicationSessionLifetime": -1,
"domainAliasNames": [],
"timerFTimeoutInterval": 32000,
"timerBTimeoutInterval": 32000,
"t4TimeoutInterval": 5000,
"defaultServletName": null,
"enableContactProvisionalResponse": false,
"enableRport": false,
"serverHeaderValue": "WebLogic SIP Server",
"engineCallStateCacheEnabled": true,
"enableSetMaxBreadth": true,
"timerLTimeoutInterval": 32000,
"name": null,
"enableSend100ForNonInviteTransaction": true,
"staleSessionHandling": "error",
"imageDumpLevel": "basic",
"retryAfterValue": "180"
}
Example 17-12 Get the required parameters for a custom resource
Send a GET request to one of the ..CreateForm
endpoints. For example, to get the required parameters for creating a new
connectionReusePool and return only the URL to be used for creating that new
connectionReusePool, make a GET request as shown below.
curl -u 'weblogic:<password>' \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/connectionReusePoolCreateForm?links=create"
Example response:
{
"links": [
{
"rel": "create",
"href": "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/connectionReusePools"
}
],
"destinationPort": 0,
"maximumConnections": 0,
"destination": null,
"poolName": null
}
Example 17-13 Create a custom resource
Send a POST request to create the new connectionReusePool.
curl -X POST \
-u 'weblogic:<password>' \
-d '{"destinationPort":987987,"maximumConnections":4,"destination":"newDst","poolName":"newPool"}' \
-H "X-Requested-By: MyClient" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/sipserver/customResource/connectionReusePools"