organizations

Extracts existing policies from an organization, folder, or project, and applies them to another organization, folder, or project as a Posture. If the other organization, folder, or project already has a posture, then the result of the long-running operation is an ALREADY_EXISTS error.

post/v1/{+parent}/postures:extract

Request

  • Base URL: https://securityposture.googleapis.com
  • URL: https://securityposture.googleapis.com/v1/{+parent}/postures:extract
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Path parameters

parentstring required

Required. The parent resource name, in the format organizations/{organization}/locations/global.

Request body

postureIdstring

Required. An identifier for the posture.

workloadstring

Required. The organization, folder, or project from which policies are extracted. Must be within the organization defined in parent. Use one of the following formats: * organization/{organization_number} * folder/{folder_number} * project/{project_number}

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status