Subaccounts Resource Transfer
This tutorial assumes that you have an access token. If you do not have an access token, see Authentication for details on how to get one.
To submit a transfer request between two subaccounts
# Configure the access token.
$ export TOKEN=$access_token
# Configure the API base URL.
$ export BASE_URL=https://registry-testbed.apnic.net/nir-api
# Create a subaccount resource transfer.
$ curl -s \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-X POST $BASE_URL/transfers \
--data-binary @- << EOF | jq
{
"resources": "103.164.200.0/24",
"transferUnderIpv4AndAsnTransferPolicy": true,
"subaccountId": 1,
"receivingSubaccountId": 2
}
EOF
To query for processed transfers
# Query for transfers.
$ curl -s \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
$BASE_URL/transfers
Can't find what you're looking for? Please contact the Software team.