Create apigee product with using edge.json file from CICD deployment

I am able to create product and developer app with using edge.json file from CICD apige maven plugin. but while adding "access=public/private" and "operations" details from edge.json file i am getting below error.

 

"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "api_product",
"description": "Invalid JSON payload received. Unknown name \"access\" at 'api_product': Cannot find field."
}
]
}
]
 
++++++++++++++++++++++++++++++++++++
 
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "api_product",
"description": "Invalid JSON payload received. Unknown name \"operation\" at 'api_product': Cannot find field."
}
]
}
=======================================================
This is my edge.json file code
 
"orgConfig":{
      "specs":[],
      "apiProducts":[
         {
            "name""XXXXXX",
            "displayName""XXXXXX",
            "description""XXXXXX",            
            "access": [
            "XXXX"
            ],
            "apiResources": [
                "/**",
                "/"
            ],
            "approvalType""auto",
            "attributes": [
               {
                   "name""description",
                   "value""ge-apigeeproducttest-poc"
               },
               {
                   "name""developer.quota.limit",
                   "value""10000"
               },
               {
                   "name""developer.quota.interval",
                   "value""1"
               },
               {
                  "name""developer.quota.timeunit",
                  "value""month"
               }
        ],
        "environments": [
            "env-name"
        ],

        "proxies": [
            "#{APIProxy-Name}#"
            ],
            "quota":"10000",
            "quotaInterval":"1",
            "quotaTimeUnit":"month",
            "scopes":[
               
            ]
         }
      ],
      "userroles":[],

 can someone suggest or any sample edge.json file for remains field like operations, GraphQL Operation, access.

I followed maven plugin github repo and Developer portal solutions from google cloud document but no luck.

 

0 0 290
0 REPLIES 0