// example output: 76wa5UNiT8gk8Q5rdCVCV4pKuZSmYsifh6g84BcL6Hqs
// but container creation is async operation. We should wait some time or make polling to ensure container created
// for simplifying we just wait
<-time.After(2*time.Second)
// take our created container
varcmdGetclient.PrmContainerGet
cmdGet.SetContainer(containerID)
getResp,err:=c.ContainerGet(ctx,cmdGet)
iferr!=nil{
panic(fmt.Errorf("ContainerGet %w",err))
}
jsonData,err:=getResp.Container().MarshalJSON()
iferr!=nil{
panic(fmt.Errorf("MarshalJSON %w",err))
}
fmt.Println(string(jsonData))
// example output: {"version":{"major":2,"minor":13},"ownerID":{"value":"Ne6eoiwn40vQFI/EEI4I906PUEiy8ZXKcw=="},"nonce":"rPVd/iw2RW6Q6d66FVnIqg==","basicACL":532660223,"attributes":[{"key":"Name","value":"name-1"},{"key":"Timestamp","value":"1681738627"}],"placementPolicy":{"replicas":[{"count":1,"selector":""}],"containerBackupFactor":1,"selectors":[],"filters":[],"subnetId":{"value":0}}}