OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Lists the region subscriptions for the specified tenancy.
/// </summary>
/// <param name="param"></param>
/// <returns></returns>
Lists the region subscriptions for the specified tenancy.
Lists the region subscriptions for the specified tenancy .
public ListRegionSubscriptionsResponse ListRegionSubscriptions(ListRegionSubscriptionsRequest param)
        {
            var uri = new Uri($"{GetEndPoint(IdentityServices.Tenancy, this.Region)}/{param.TenancyId}/regionSubscriptions");
            using (var webResponse = this.RestClient.Get(uri))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new ListRegionSubscriptionsResponse()
                {
                    Items = JsonSerializer.Deserialize<List<RegionSubscription>>(response),
                    OpcRequestId = webResponse.Headers.Get("opc-request-id")
                };
            }
        }
public ListRegionSubscriptionsResponse ListRegionSubscriptions ( ListRegionSubscriptionsRequest param ) { var uri = new Uri ( $" { GetEndPoint ( IdentityServices . Tenancy , this . Region ) } / { param . TenancyId } /regionSubscriptions " ) ; using ( var webResponse = this . RestClient . Get ( uri ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new ListRegionSubscriptionsResponse ( ) { Items = JsonSerializer . Deserialize < List < RegionSubscription > > ( response ) , OpcRequestId = webResponse . Headers . Get ( " " ) } ; } }
Lists the region subscriptions for the specified tenancy.
Lists the region subscriptions for the specified tenancy .
None
param
ListRegionSubscriptionsRequest
None