Here is another example how to create a custom profile for your Extract or Replicat and make it the default.

    echo "############################"     
    echo "## Creating Custom Profile"
    echo "############################" 
    curl -k -X POST 'https://'$ogg_ip':'$ogg_port'/services/'$conn_name'/adminsrvr/v2/config/types/ogg:managedProcessSettings/values/ogg:managedProcessSettings:'$conn_name'-profile' \
    -H 'Authorization: Basic b2dnYWRtaW46V2VsY29tZSMjMTIz' \
    -d '{
    "autoStart": {
        "enabled": true,
        "delay": 60
    },
    "autoRestart": {
        "enabled": true,
        "retries": 9,
        "delay": 60,
        "window": 3660,
        "onSuccess": false,
        "disableOnFailure": true
    }
        }' 

    echo "#############################################"     
    echo "## Making Custom Profile Default and adding Description"
    echo "#############################################" 
    curl -k -X POST 'https://'$ogg_ip':'$ogg_port'/services/'$conn_name'/adminsrvr/v2/config/types/ogg:configDataDescription/values/ogg:managedProcessSettings:'$conn_name'-profile' \
    -H 'Authorization: Basic b2dnYWRtaW46V2VsY29tZSMjMTIz' \
    -d '{
        "$schema": "ogg:configDataDescription",
        "description": "'$conn_name' Profile",
        "isDefault": true
    }' | jq

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.