Unable to start pod using GraphQL
I am trying to create a pod using the GraphQL endpoint but I am getting 400 status response, here are the request and response for the same. Please let me know how to get this working.
I am facing a similar issue when trying to fetch registryauth details
Sending GraphQL query:
mutation {
podFindAndDeployOnDemand(
input: {
cloudType: ALL
gpuCount: 1
volumeInGb: 40
containerDiskInGb: 40
minVcpuCount: 2
minMemoryInGb: 15
gpuTypeId: "NVIDIA RTX A6000"
name: "My Private Container"
imageName: "xyz/ml_worker:image_genV7.0"
dockerArgs: ""
ports: "8888/http"
volumeMountPath: "/workspace"
containerRegistryAuthId: "cm2rqsxxxxxo"
}
) {
id
imageName
machineId
}
}
Response status code: 400
Response content: {"errors":[{"message":"Something went wrong. Please try again later or contact support.","locations":[{"line":17,"column":21}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]}
Sending GraphQL query:
mutation {
podFindAndDeployOnDemand(
input: {
cloudType: ALL
gpuCount: 1
volumeInGb: 40
containerDiskInGb: 40
minVcpuCount: 2
minMemoryInGb: 15
gpuTypeId: "NVIDIA RTX A6000"
name: "My Private Container"
imageName: "xyz/ml_worker:image_genV7.0"
dockerArgs: ""
ports: "8888/http"
volumeMountPath: "/workspace"
containerRegistryAuthId: "cm2rqsxxxxxo"
}
) {
id
imageName
machineId
}
}
Response status code: 400
Response content: {"errors":[{"message":"Something went wrong. Please try again later or contact support.","locations":[{"line":17,"column":21}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]}
query {
myself {
containerRegistryAuth {
id
name
registryAuth
}
}
}
query {
myself {
containerRegistryAuth {
id
name
registryAuth
}
}
}
0 Replies