auth.exportAuthorization
Returns data for copying authorization to another data-center.
func (c *Client) AuthExportAuthorization(ctx context.Context, dcid int) (*AuthExportedAuthorization, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AuthExportAuthorization(ctx, dcid)
if err != nil {
return err
}
_ = res // *AuthExportedAuthorization
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
DCID | int | yes | Number of a target data-center |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | DC_ID_INVALID | The provided DC ID is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
auth.exportAuthorization#e5bfffcd