Apigee请求被拒绝

时间:2018-08-30 08:19:02

标签: apigee

尝试进行本教程的试用:https://cloud.google.com/solutions/serving-machine-learning-models-using-apigee-edge-and-ml-engine

运行以下命令:

curl -s -X POST \
    -H "Content-Type: application/json" \
    -H "X-APIKEY: ${FOOAPP_API_KEY}" \
    -d '{
        "instances": [{
            "age": 25,
            "workclass": "Private",
            "education": "Some-college",
            "education_num": 1,
            "marital_status": "Never-married",
            "occupation": "Other-service",
            "relationship": "Other-relative",
            "race": "Other",
            "gender": "Female",
            "capital_gain": 0,
            "capital_loss": 0,
            "hours_per_week": 40,
            "native_country": "United-States"}]
    }' \
    https://${APIGEE_ORGANIZATION}-${APIGEE_ENVIRONMENT}.apigee.net/ml/census/v1/predict

参数已相应设置。 出现以下错误:

{
  "error": {
    "code": 403,
    "message": "Access to project denied.",
    "status": "PERMISSION_DENIED"
  }
}

0 个答案:

没有答案