Download OpenAPI specification:
Automatically generated swagger spec for the share stack.
Returns, for each given entity ID, the account IDs allowed to access that entity.
| entityIds required | Array of strings |
{- "entityIds": [
- "string"
]
}{- "result": [
- {
- "allowedAccountIds": [
- "string"
], - "entityId": "string"
}
]
}Returns shares from sourceAccountId to the given target account IDs. Optional resourceIdPrefix filters which resource IDs are returned.
| sourceAccountId required | string <int64> |
| targetAccountIds required | Array of strings <int64> non-empty [ items <int64 > ] |
| resourceIdPrefix | string If left empty all resourceIds should be returned |
{- "shares": [
- {
- "resourceIds": [
- "string"
], - "scope": "UNDEFINED_SCOPE",
- "sourceAccountId": "string",
- "targetAccountId": "string"
}
]
}Returns shares that include any of the given resource IDs.
| resourceIds required | Array of strings |
{- "resourceIds": [
- "string"
]
}{- "shares": [
- {
- "resourceIds": [
- "string"
], - "scope": "UNDEFINED_SCOPE",
- "sourceAccountId": "string",
- "targetAccountId": "string"
}
]
}Returns shares associated with the given sub-resource IDs.
| subResourceIds required | Array of strings |
{- "subResourceIds": [
- "string"
]
}{- "shares": [
- {
- "resourceIds": [
- "string"
], - "scope": "UNDEFINED_SCOPE",
- "sourceAccountId": "string",
- "targetAccountId": "string"
}
]
}Returns shares targeting the given account. Optional resourceIdPrefix filters which resource IDs are returned.
| targetAccountId required | string <int64> |
| resourceIdPrefix | string Optional. If left empty all resourceIds should be returned |
{- "shares": [
- {
- "resourceIds": [
- "string"
], - "scope": "UNDEFINED_SCOPE",
- "sourceAccountId": "string",
- "targetAccountId": "string"
}
]
}Returns resource IDs shared with the given target account. Optional resourceIdPrefix and share scopes filter the results.
| targetAccountId required | string <int64> |
| resourceIdPrefix | string |
| scopes | Array of strings Items Enum: "UNDEFINED_SCOPE" "MARKETING_SCOPE" "MANAGEMENT_SCOPE" "ACCOUNTING_SCOPE" "ASSET_SCOPE" Optional. If empty array then filter is not applied |
{- "ids": [
- "string"
]
}Returns source (owner) account IDs that share with the given target account.
| targetAccountId required | string <int64> |
{- "sourceAccountIds": [
- "string"
]
}Returns target account IDs that are share partners of the given source account.
| sourceAccountId required | string <int64> |
{- "targetAccountIds": [
- "string"
]
}Returns partner account IDs associated with the given asset account.
| assetAccountId required | string <int64> |
{- "partnerAccountIds": [
- "string"
]
}Returns sub-resource shares for the given resource IDs, optionally filtered by sub-resource ID prefixes.
| resourceIds required | Array of strings |
| subResourceIdPrefixes required | Array of strings |
{- "resourceIds": [
- "string"
], - "subResourceIdPrefixes": [
- "string"
]
}{- "shares": [
- {
- "sourceAccountId": "string",
- "subResourceId": "string",
- "targetAccountIds": [
- "string"
]
}
]
}Returns sub-resource IDs shared with the given target account under the specified scope, optionally filtered by sub-resource ID prefix.
| targetAccountId required | string <int64> |
| scope | string Default: "UNDEFINED_SCOPE" Enum: "UNDEFINED_SCOPE" "MARKETING_SCOPE" "MANAGEMENT_SCOPE" "ACCOUNTING_SCOPE" "ASSET_SCOPE" |
| subResourceIdPrefix | string |
{- "subResourceIds": [
- "string"
]
}Creates or updates a share from sourceAccountId to targetAccountId for the given resource IDs under the specified share scope. Returns the resulting share.
| resourceIds required | Array of strings |
| scope required | string (shareShareScope) Default: "UNDEFINED_SCOPE" Enum: "UNDEFINED_SCOPE" "MARKETING_SCOPE" "MANAGEMENT_SCOPE" "ACCOUNTING_SCOPE" "ASSET_SCOPE" |
| sourceAccountId required | string <int64> |
| targetAccountId required | string <int64> |
{- "resourceIds": [
- "string"
], - "scope": "UNDEFINED_SCOPE",
- "sourceAccountId": "string",
- "targetAccountId": "string"
}{- "share": {
- "resourceIds": [
- "string"
], - "scope": "UNDEFINED_SCOPE",
- "sourceAccountId": "string",
- "targetAccountId": "string"
}
}Sets shares from an owner account to a target account for the given share scopes. Returns the resulting shares.
| ownerAccountId required | string <int64> |
| scopes required | Array of strings (shareShareScope) Items Enum: "UNDEFINED_SCOPE" "MARKETING_SCOPE" "MANAGEMENT_SCOPE" "ACCOUNTING_SCOPE" "ASSET_SCOPE" |
| targetAccountId required | string <int64> |
{- "ownerAccountId": "string",
- "scopes": [
- "UNDEFINED_SCOPE"
], - "targetAccountId": "string"
}{- "shares": [
- {
- "resourceIds": [
- "string"
], - "scope": "UNDEFINED_SCOPE",
- "sourceAccountId": "string",
- "targetAccountId": "string"
}
]
}Removes shares for the given resource IDs from sourceAccountId under the specified share scopes.
| resourceIds required | Array of strings |
| scopes required | Array of strings (shareShareScope) Items Enum: "UNDEFINED_SCOPE" "MARKETING_SCOPE" "MANAGEMENT_SCOPE" "ACCOUNTING_SCOPE" "ASSET_SCOPE" |
| sourceAccountId required | string <int64> |
{- "resourceIds": [
- "string"
], - "scopes": [
- "UNDEFINED_SCOPE"
], - "sourceAccountId": "string"
}{ }