So I am trying to automatically create a Datastream pipeline using python api’s (since terraform is not yet supported) [https://github.com/googleapis/python-datastream ] but , I am getting a weird error https://github.com/googleapis/python-datastream/issues/137 .
Also when I hit the rest api for making a connection profile using post request to :
[https://datastream.googleapis.com/v1/projects/dev/locations/asia-south1/connectionProfiles?connectionProfileId=tempsql]. using authorization token and
body as
{
"displayName": "tempsql",
"mysqlProfile": {
"hostname": "",
"port": 3306,
"username": "",
"password": ""
},
"staticServiceIpConnectivity": {}
}
(ip , username and pass were actually filled with values)
I get the following output (with 200 ok) but the connection profile is not created :
{
"name": "projects/dev/locations/asia-south1/operations/operation-1665392318933-5eaaa5d94e890-3cb4d2a0-e4053b16",
"metadata": {
"@type": "type.googleapis.com/google.cloud.datastream.v1.OperationMetadata",
"createTime": "2022-10-10T08:58:39.027689323Z",
"target": "projects/dev/locations/asia-south1/connectionProfiles/tempsql",
"verb": "create",
"requestedCancellation": false,
"apiVersion": "v1"
},
"done": false
}
Can anyone help me with this ? Any alternative automation that help me to create entire datastream with connections automatically ?