Version notice:
/mgmt/shared/iapp/block-copy¶
Makes a copy of an existing iApp Block to a new block.
Note
This API can copy blocks from the state TEMPLATE and UNBOUND to TEMPLATE or UNBOUND, but it cannot copy block from state TEMPLATE to TEMPLATE.
Action: Copy an existing iApp block¶
URI Path | HTTP Method |
---|---|
/mgmt/shared/iapp/block-copy | POST |
Data Parameters¶
Attribute Name | Type | Description |
---|---|---|
blockLink | String (URI) | URI to existing block, regardless of state. For blocks, dataProperties will not be replicated. |
blockNamePrefix | String | Prefix to be added to the name of all blocks in the graph. Prefix and suffix cannot both be null. |
blockNameSuffix | String | Suffix to be appended to the name of all blocks in the graph. Prefix and suffix cannot both be null. |
copyToState | String (STATE) | State of copied block. |
Example:
{
"blockLink": "https://localhost/mgmt/shared/iapp/blocks/8b139857-bf33-3cde-9b66-73980a0c2924",
"blockNamePrefix": "My ",
"blockNameSuffix": " 4",
"copyToState": "UNBOUND"
}
Success Response¶
HTTP/1.1 200 OK
{
"id": "7b98f6d1-52dc-44f8-a2fe-84d105aa6dc6",
"name": "My HTTP App 4",
"subBlocks": {},
"inputProperties": [
{
"id": "virtualAddress",
"type": "STRING",
"value": "10.0.0.25",
"metaData": {
"description": "Virtual Server IP address, either IPv4 or IPv6",
"displayName": "Virtual Server IP",
"isRequired": true
}
}
],
"configurationProcessorReference": {
"link": "https://localhost/mgmt/shared/iapp/proccesors/noop"
},
"audit": {
"intervalSeconds": 0,
"policy": "NOTIFY_ONLY"
},
"configProcessorTimeoutSeconds": 0,
"statsProcessorTimeoutSeconds": 15,
"configProcessorAffinity": {
"processorPolicy": "LOAD_BALANCED",
"affinityProcessorReference": {
"link": "https://localhost/mgmt/shared/iapp/processors/affinity/load-balanced"
}
},
"state": "UNBOUND",
"generation": 1,
"lastUpdateMicros": 1517267768298116,
"kind": "shared:iapp:blocks:blockstate",
"selfLink": "https://localhost/mgmt/shared/iapp/blocks/7b98f6d1-52dc-44f8-a2fe-84d105aa6dc6"
}
Example Call¶
curl -sk -H 'Content-Type: application/json' -u 'admin:admin' \
https://<BIG-IP>/mgmt/shared/iapp/block-copy -d @copy.json