这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG] Service Endpoint creationg fails with Disk Encryption error #647

@nishantnasa

Description

@nishantnasa

Describe the bug
When creating a service endpiont using apigeecli it fails with disk encryption error and the same request works fine using apigee api curl command

The command in question:

apigeecli endpoints create \
  --org "{ord}" \
 --token $TOKEN  \
--name test-psc-endpoint \
--location australia-souteast1 \
-s "projects/PROJECT_ID/regions/australia-southeast1/serviceAttachments/SA_NAME"

Error: disk encryption key must be of the format projects/{project-id}/regions/{location}/serviceAttachments/{sa-name}

The following curl command works fine and successfuly creates the endpoint attachment for PSC consumer:

curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type:application/json" \
"https://apigee.googleapis.com/v1/organizations/ORGANIZATION/endpointAttachments?endpointAttachmentId=EA_NAME" \
-d '{
    "location": "australia-southeast1",
    "serviceAttachment": "projects/PROJECT_ID/regions/australia-southeast1/serviceAttachments/SA_NAME"
}'

Version
apigeecli version 2.9.0 date: 2025-01-22T22:34:55Z [commit: 4d20467]

To Reproduce
Create a PSC Service Attachment in Producer project first and use the corresponding service attachment details in the following command to create the apigeex endpoint attachment for the PSC consumer

apigeecli endpoints create \
  --org "{ord}" \
 --token $TOKEN  \
--name test-psc-endpoint \
--location australia-souteast1 \
 --region australia-southeast1 \
-s "projects/PROJECT_ID/regions/australia-southeast1/serviceAttachments/SA_NAME"

Expected behavior
Endpoint attachment should be created successfully without any errors within ApigeeX

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions