OCISDK/OCISDK/ObjectStorage/ObjectStorageClientAsync.cs
/// <summary>
/// Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace.
/// The namespace is a system-generated string assigned during account creation. For some older tenancies, 
/// the namespace string may be the tenancy name in all lower-case letters. You cannot edit a namespace.
///GetNamespace returns the name of the Object Storage namespace for the user making the request.
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace.
The namespace is a system-generated string assigned during account creation. For some older tenancies,
the namespace string may be the tenancy name in all lower-case letters. You cannot edit a namespace.
GetNamespace returns the name of the Object Storage namespace for the user making the request.
Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace . The namespace is a system - generated string assigned during account creation . For some older tenancies the namespace string may be the tenancy name in all lower - case letters . You cannot edit a namespace . GetNamespace returns the name of the Object Storage namespace for the user making the request .
public async Task<string> GetNamespace(GetNamespaceRequest request)
        {
            var uri = new Uri($"{GetEndPointNoneVersion(ObjectStorageServices.Namespace, this.Region)}/");
            using (var webResponse = await this.RestClientAsync.Get(uri, new HttpRequestHeaderParam() { OpcClientRequestId = request.OpcClientRequestId }))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return JsonSerializer.Deserialize<string>(response);
            }
        }
public async Task < string > GetNamespace ( GetNamespaceRequest request ) { var uri = new Uri ( $" { GetEndPointNoneVersion ( ObjectStorageServices . Namespace , this . Region ) } / " ) ; using ( var webResponse = await this . RestClientAsync . Get ( uri , new HttpRequestHeaderParam ( ) { OpcClientRequestId = request . OpcClientRequestId } ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return JsonSerializer . Deserialize < string > ( response ) ; } }
Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace.
Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace .
None
request
GetNamespaceRequest
None